[
https://issues.apache.org/jira/browse/OPENNLP-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081362#comment-13081362
]
James Kosin edited comment on OPENNLP-239 at 8/9/11 3:51 AM:
-------------------------------------------------------------
Jorn,
Sorry, I've been busy... The default was because I didn't know the
default state for many of the models. Most of the time it is based on
how they are created. I can fix that easily; so that it gets set to
true if not present.
I found a way to implement without being static.
I'm also not familiar with the UMIA branch of OpenNLP or what the
StringDictionary's requirements are... it appears to not be using any case
sensitive flags; so... I wrote a default of true (to keep the flag the default).
James
was (Author: jkosin):
Jorn,
Sorry, I've been busy... The default was because I didn't know the
default state for many of the models. Most of the time it is based on
how they are created. I can fix that easily; so that it gets set to
true if not present.
The static was required because the function is static and doesn't have
access to the non-static members. I agree it was a nasty compromise.
The other way to go would be to add the serializing to the Dictionary
object itself... but, I don't know the problems with growing the
Dictionary class too large... lastly, we could have the serializing as
non-static meaning we would need to create a DictionarySerializer to use.
James
I'm also not familiar with the
> 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