Natural Language and Ruby

description »
Sandro Paganotti

Natural Language 
and Ruby
[QUIZ] Twitter Personalities (#208)
Merhaba Rubyists,

This week's quiz is to create a program that will generate messages140 characters in length. There primary use will be to create aTwitter "personality". At the end of the quiz period these"personalities" will be unleashed on the internet and we'll see howthey do in the wild.
convert samples of human language into more formal representations such as parse trees or first order logic that are easier for computer programs to manipulate
Natural Language understanding (NLG) 
wikipedia
Tools and techniques
Wordnet 
a lexical database for the English language
Le varie parole dell'alfabeto inglese sono
aggregate per similitudine semantica.

Tali gruppi sono relazionati fra di loro 
sempre per associazioni semantiche
ruby [noun] -- (a transparent piece of ruby that has been cut and polished and is valued as a precious gem)ruby [noun] -- (a transparent deep red variety of corundum; used as a gemstone and in lasers)crimson, ruby, deep red [noun] -- (a deep and vivid red color)
meronyms: library,loft,attic,garret,porch,study
hypernyms: dwelling,home,domicile,abode,habitation,dwelling house,building,edifice
derivations: house,put up,domiciliate
hyponyms: beach house,boarding house,boardinghouse,bungalow,cottage,cabin,chalet,chapterhouse,fraternity house,frat house,country house,detached house,single dwelling,dollhouse,doll's house,duplex house,duplex,semidetached house,farmhouse,gatehouse,guesthouse,hacienda,lodge,hunting lodge,lodging house,rooming house,maisonette,maisonnette,mansion,mansion house,manse,hall,residence,ranch house,row house,town house,safe house,saltbox,sod house,soddy,adobe house,solar house,tract house,villa
house: noun.artifact
The Link Grammar Parser
a syntactic parser of English
E' sostanzialmente un parser capace di effettuare analisi
logica e grammaticale di sentenze scritte in lingua inglese.
Sogg:             cat
Ruby Linguistic è un framework 
contenente alcune funzioni quali:

coniugazione dei tempi verbali;
concatenazione di elementi;
generazione di numeri ordinali.

Ed in più crea un layer sovrastante wordnet e link grammar.
NLG: Natural language Generators
An example: TwitterSapiens
Una piccola dimostrazione...
Room for improvements:
Non necessariamente parole semanticamente vicine fra loro concorrono a formare una frase di senso compiuto;
Utilizzare linkparser come 'validatore' della grammatica generata;
Utilizzare un descrittore di grammatica migliore;
..altro ?

QUestions ?
Thanks!
sandropaganotti.com
sandro.paganotti@gmail.com
Verbo:           chased
Comp.ogg:    snake
Verbo (inf):   chase

Loading comments...

Please log in to add your comment.

Report abuse

More presentations by Sandro Paganotti

  • Rails 3

    Sandro Paganotti on

    A mini presentation summarizing what will be Rails 3 and we we'll want to be there

  • Framework per il mobile web

    Sandro Paganotti on

    La sessione è focalizzata sullʼillustrare quali sono i vantaggi nellʼutilizzo di un framework web per il mobile

  • Ruby e OpenCV

    Sandro Paganotti on

    description