[
https://issues.apache.org/jira/browse/OPENNLP-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080337#comment-13080337
]
James Kosin commented on OPENNLP-239:
-------------------------------------
Jorn,
The problem is the POSDictionary isn't like the normal Dictionary so; it
doesn't use the StringWrapper. The POSDictionary also uses a HashTable... So
the case flag is just there; however, even if it is set doesn't do anything.
What we need to do is decide if we want to use the normal Dictionary class or
create another wrapper class around the strings to get the correct compares.
That aside, I'm not sure how the hash() function comes into play; but, we may
have problems with the Dictionary class already, because the hash() is always
with lower-case letters regardless of the case sensitivity setting. This maybe
wrong if Java uses the hash() to determine if two items are identical.
I have to dig a bit more into this to determine if we need any more changes.
> Case Sensitivie Flag & Custom Tag Dictionary
> --------------------------------------------
>
> Key: OPENNLP-239
> URL: https://issues.apache.org/jira/browse/OPENNLP-239
> Project: OpenNLP
> Issue Type: New Feature
> Components: Parser
> Affects Versions: tools-1.5.1-incubating
> Reporter: mark meiklejohn
> Assignee: James Kosin
> Fix For: tools-1.5.2-incubating
>
>
> Unable to set case sensitive flag as per TreebankParser 1.3.1 or use a custom
> tag dictionary
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira