[
https://issues.apache.org/jira/browse/OPENNLP-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002182#comment-14002182
]
Mark Giaconia commented on OPENNLP-695:
---------------------------------------
I am using the Map now just to hold some metadata about where the sample came
from as I pass the object around. I am reading the Samples from a database and
need to track what data source it comes from, and which users have access to it
etc...
As far as making a feature generator that looks at this map, it seems like
users should add additional features to the String or String[] arg in the
constructor rather than having a feature generator look at the map for that
kind of data. I guess I was not thinking of the map as additional context,
rather just as additional info about where the sample came from.
> Add extra information to DocumentSample
> ---------------------------------------
>
> Key: OPENNLP-695
> URL: https://issues.apache.org/jira/browse/OPENNLP-695
> Project: OpenNLP
> Issue Type: Improvement
> Components: Doccat
> Affects Versions: 1.6.0
> Reporter: William Colen
> Assignee: William Colen
> Priority: Minor
> Fix For: 1.6.0
>
>
> Often a document has additional information fields, such as title, sender,
> date, key words. We should add field to the DocumentSample where to store
> this information, and change the API in such a way that users could implement
> feature generators using this information.
--
This message was sent by Atlassian JIRA
(v6.2#6252)