On 05/07/2012 11:12 PM, Michael Schmitz wrote:
I thought the API used strings...
http://opennlp.apache.org/documentation/1.5.2-incubating/apidocs/opennlp-maxent/opennlp/model/Event.html
Specifically, I'm referring to String[] context which seems required
when I looked at the underlying source (although values[] is also
used).
You need to pass in both, there is no way to get around that with
our current API. Anyway if you know your features in advance you can
cache the string objects and only pass in references instead of
constructing new
string objects on every call.
Jörn