2

I am currently using Apache Solr to build a search engine. The queries in Solr are of the field:value format. Now I want to use a part-of-speech tagger to separate the subject, verb and predicate and search the values in each fields. For example, if I input "Who likes Starbucks" then I need some code to give me "q=subject:*&verb=likes&object=starbucks". Is there any library that can handle this job? Thank you!

Yangrui
  • 1,217
  • 2
  • 17
  • 41

2 Answers2

0

I think several people have used UIMA for this, see solr wiki

Persimmonium
  • 15,593
  • 11
  • 47
  • 78
-1

There are a number of POS taggers. Here is another StackOverflow posting about this: What is a good Java library for Parts-Of-Speech tagging?

Community
  • 1
  • 1
Eric Pugh
  • 1,563
  • 11
  • 17