abathologist / borgmanities Goto Github PK
View Code? Open in Web Editor NEWA short-lived twitter bot in Haskell (and a bit of Python)
License: MIT License
A short-lived twitter bot in Haskell (and a bit of Python)
License: MIT License
At the moment, the paths are dependent on the current working directory.
Cf. https://docs.python.org/2/howto/unicode.html
Note: I ran into no problems running BotticelliBot in iTerm, but when I ran it in emacs-shell, the encoding caused problems. I guess the former sets the environment to handle unicode encoding to some extent, though I've also noticed some artifacts in the strings coming fin from python.
In PapterTitleGen.Gen.hs
: Select, manicure, and assemble data from fields of TitleParts input.
The main function for this should be generateTitle
(rename if desired).
I'm putting you as principle on this, @KitLiterate, but not to be burdensome! Mainly just to explore the utility of the issue tracker as a project-planning tool.
Change or add what you will.
On a recent test I got back "manorial based jobs xlyqfwri rt dsw worldwide the fight" as a compliment. But, if we could catch plurals, the complement would have been "manorial based jobs", which would have worked nicely.
WordsApi suddenly quit working, I think. I don't know if this is because I exceeded the daily allowance, or because of an issue on their end. But, in either case, they are terminating their "sandbox" services come February 20th, and will only be serving their api via Mashape (https://www.mashape.com/wordsapi/wordsapi), so I'll have to make this switch eventually. The fact that I only think WordsApi is the problem indicates serious shortcoming in the design of the Web/WordsApi.hs
: I have no logging or error reporting here.
System.Process
to interface with curl instead of Network.Curl
.WordsApi.hs
.For the purposes of refining the algorithm and monitoring its efficiency (namely in terms of how many times it has to restart due to failure to find fitting candidate data), logging seems essential. Also, it's just a good thing to learn to implement.
Each successful seedNoun should be recorded in a list of seedNouns, and these should not be repeated (at least not until we have extended the range of inputs available to the bot).
src/resources/seedNouns.txt
.seedNouns.txt
.If title generation fails > 100 times, end the program.
BotticelliBot has been exceeding its free month quota. This month, it did so in a mere 15 days. That's too pricey for a novelty project. WordNet has a Prolog version of its 3.0 database, and I love Prolog; plus, it would be better if it were running independently any how. Thus...
It's currently linked with my account, via the user tokens.
I think tweets are running together, leading to some nonsense...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.