Menu

coding new rules

Help
2009-07-07
2013-04-11
  • pavithra mukesh

    pavithra mukesh - 2009-07-07

    Hi,
    I need to append a few names to the namefinder lexicon, as well as add a few more rules for named entity detection. Could anyone tell me where to feed in the rules  It would be great if someone could tell me how the existing rules have been encoded with an example, as well as a list of the existing rules.

    Regards,
    Pavithra

     
    • Thomas Morton

      Thomas Morton - 2009-07-08

      Hi,
         The named-entity code isn't rule-based, but generates features which are given weights by a statistical model trained on a large number of examples.  The feature generation is in opennlp.tools.namefind.DefaultContextGenerator and uses a number of supporting classes.

         You can implement a new name finder using rules or what have you by implementing the opennlp.tools.namefind.TokenNameFinder interface.

      Hope this helps...Tom

       
    • pavithra mukesh

      pavithra mukesh - 2009-07-08

      How to create bin, nbin file? what is there in nbin file?

       

Log in to post a comment.