Natural Language Processing in PHP
To do it 'properly', you need to define some sort of grammar, and then maybe use a LALR
parser or some tools such as yacc
, bison
or Lex
to build a parser. Assuming you dont want to do that, its strpos()
ftw!
There is openNlp in java for name entity extraction which can fetch you what you are looking see this : http://opennlp.sourceforge.net/models-1.5/
Then you can use php-java connector to get results into php.