GMU:Bots 'n' Plots/Christopher Marx: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
 
Line 10: Line 10:
The twitter bot is working with the NLTK library; mainly with the built-in function ''stop words''. Linking words, conjunctions, articles and pronouns are words that make a language speakable. However, they don't create the meaning of a text. Idiomaggio filters the stop words out and detects their language. In a second step, the tweet will be responded in the correct language.
The twitter bot is working with the NLTK library; mainly with the built-in function ''stop words''. Linking words, conjunctions, articles and pronouns are words that make a language speakable. However, they don't create the meaning of a text. Idiomaggio filters the stop words out and detects their language. In a second step, the tweet will be responded in the correct language.


Idiamaggio understands the European languages Swedish, Danish, Hungarian, Finnish, Portugese, German, Dutch, French, Spanish, Norwegian, English, Russian, Turkish and Italian.
Idiamaggio understands the European languages Swedish, Danish, Hungarian, Finnish, Portugese, German, Dutch, French, Spanish, Norwegian, English, Russian, Turkish and Italian. It responds with a single phrase. A further possibility to create more sophisticated responds is the usage of the AIML library. AIML is a markup language which creates phrases and meaning. However, AIML is not available in all of the 14 languages which the NLTK library uses. Therefore I decided to create a Twitter Bot, which doesn't pretend to be human, but responds correctly. 


'''[https://twitter.com/idiomaggio Find Idiomaggio on Twitter]'''
'''[https://twitter.com/idiomaggio Find Idiomaggio on Twitter]'''
Line 203: Line 203:
[[File:myrobot.png|100px100px|thumb|left]]
[[File:myrobot.png|100px100px|thumb|left]]


The Grammar Bot creates some random sentences.
The Grammar Bot creates some random sentences. It is a first step towards a "Language Bot".


Grab the code at pastebin: [http://pastebin.com/GvgyfDUU Grammar Bot]
Grab the code at pastebin: [http://pastebin.com/GvgyfDUU Grammar Bot]