3 ms·
So, Siri for the terminal? Cool idea but your implementation won't scale (more complex commands and/or beyond English). You need a grammer file and some NLP lib
by pathikrit 12y ago
So, Siri for the terminal? Cool idea but your implementation won't scale (more complex commands and/or beyond English). You need a grammer file and some NLP library. Look at how this is implemented: http://natty.joestelmach.com/ http://natty.joestelmach.com/ Their core is implemented in this grammer file: https://github.com/joestelmach/natty/blob/master/src/main/antlr3/com/joestelmach/natty/generated/DateLexer.g https://github.com/joestelmach/natty/blob/master/src/main/an...
Take a look at this too since you wrote it in python: http://www.nltk.org/ http://www.nltk.org/
- max0563 12y agoVery interesting, thanks for the tip. This is my first time parsing natural language like this, it is a bit challenging.