I have predefined words and would like to know if the sentence primary subject is about the predefined words.
Example:
Predefined words:
iPhone, Nexus, HTC
Sentence:
I like the new design of iPhone – primary subject is iPhone
I am listing to Nirvana on my Nexus. – primary subject is not in predefined words
The HTC phone is better than iPhone – primary subject is HTC
Would like to do this in PHP or something I that can have PHP interface.
Alias-i has a natural language parser for PHP.
Edit: this page says Alias-i’s parser is written in PHP, but Alias-i’s website says it is written in Java.