ellerre / mytalk Goto Github PK
View Code? Open in Web Editor NEWProlog tool for NLP based on WordNet lexical database
Prolog tool for NLP based on WordNet lexical database
When dealing with verbs, MyTalk uses a call to the wordnet predicate fr(synset_id,f_num,w_num)
in order to find the frames of the verb to check whether it’s bi-transitive (f_num
of 14 would be a bi-transitive verb, for example).
Currenlty, MyTalk prints “too difficult” for almost any sentence, but the fr(synset_id,f_num,w_num)
seems behave as if it is actually fr(synset_id,w_num,f_num)
with the f_num
and w_num
reversed. For the verb “give”, the second argument is always 0 (default word number for a synset?), and the third argument has various frame numbers, including 14 for a bi-trasitive verb.
By changing MyTalk to swap the positions of w_num
and f_num
, then MyTalk understands basic sentences, such as “terry gave shrdlu” which would be “too difficult” for the current master version of MyTalk.
This can be solved by reversing the order of the arguments: fr(SysID, FR, W_Num)
becomes fr(SysID, _, FR)
and this allows the verb number of the group (now second argument) to be anything, including 0 (the verb number for the framing seems to be 0 in a lot of cases which seems to mean there is a default framing for the verb group).
Thanks to Prof. Todd Kelley from Algonquin College for this precious suggestion. I hope one day I'll have time to do these changes (contributions will be really welcome).
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.