Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[NLP] Detecting verbs

Name: Anonymous 2018-09-25 6:36

What's a simple algorithm (simple == no academia robodick sucking neural network bullshit) to pretty consistently find a verb in a given sentence? I wish to create a bot. I'm thinking of using a dictionary, I just don't know how to work out the details.

Name: Anonymous 2018-09-26 21:39

1. get a list of all verbs
2. tokenize/lemmatize each word (e.g., "runs" --> "run")
3. put each word in a search tree
4. test new verbs by tokenizing and searching
optionally autocorrect typos this way: http://norvig.com/spell-correct.html

This is 100x faster than any neural robodick algorithms and probably works better.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List