4 ms·
I need some ideas for commands, if anyone had any suggestions that'd be appreciated.
by max0563 12y ago
I need some ideas for commands, if anyone had any suggestions that'd be appreciated.
- pathikrit 12y agoSo, 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.
- walterbell 12y agoHow about supporting composite operations, which invoke more than one command, e.g. a shell pipeline, or an IFTTT-like join between web services? That would make this more than a shell translator.
- max0563 12y agoI could do this using a keyword such as "then" "Hey google "Hacker News" then find me a sushi bar"