how to extract a verb in a sentence using java code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • revedha
    New Member
    • Jan 2014
    • 1

    how to extract a verb in a sentence using java code

    how to extract a verb in a sentence using java code
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi revedha and welcome to bytes.com!

    First of all: working with languages programmaticall y is very difficult and rarely perfect due to the complexity of languages. So don't expect perfect results.

    Now, assuming you still want to go forward with this the first question to ask yourself is: Which language do you want to parse with this code? English for example is different from German or French from example and even more so from Russian or various east Asian languages. And don't get me started on the various tribal languages from all over the world...
    When you've decided that you'll have to decide other parameters of your situation; is there a certain form of sentence you'd like to find the verb in or is it supposed to be a universal algorithm? How tolerant of errors should your algorithm be? Are there a certain number of verbs you want to recognize or do you want it to detect anything that looks like it could be a verb?

    Once you've decided on those issues you can start thinking about an algorithm. Mind you, the more you want your program to be able to do the more difficult it will be.

    Comment

    Working...