You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Rodrigo Agerri (JIRA)" <ji...@apache.org> on 2014/03/10 10:54:42 UTC

[jira] [Created] (OPENNLP-665) remove parser.lang.en.HeadRules specific casting for Parser

Rodrigo Agerri created OPENNLP-665:
--------------------------------------

             Summary: remove parser.lang.en.HeadRules specific casting for Parser
                 Key: OPENNLP-665
                 URL: https://issues.apache.org/jira/browse/OPENNLP-665
             Project: OpenNLP
          Issue Type: Bug
          Components: Parser
    Affects Versions: tools-1.5.3
            Reporter: Rodrigo Agerri
             Fix For: 1.6.0


To train a parser.chunking.Parser, both from the CLI or using the API, the headRule class used is always the parser.lang.en.HeadRules class. This class performs two functions: 

1. It hardcodes the headrules for Noun Phrases. 
2. It reads a headRules file to load the headRules for the rest of the constituents. 

While trying to train parsers for other languages, it is now only possible to train with the lang.en.HeadRules class. 




--
This message was sent by Atlassian JIRA
(v6.2#6252)