Funny you ask: my semester just ended, and I'm planning to get back to it quite soon! (After quite a long hiatus...)
On Mon, May 7, 2012 at 4:25 PM, Michael Schmitz <[email protected]>wrote: > Yeah, I was caching my strings when I had Boolean features sets. This > is infeasible with floats though, and it's a bit of a performance > problem. I ended up writing my own logistic regression execution > code. > > The current API isn't going anywhere? > > Peace. Michael > > > On Mon, May 7, 2012 at 2:16 PM, Jörn Kottmann <[email protected]> wrote: > > 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 > -- Jason Baldridge Associate Professor, Department of Linguistics The University of Texas at Austin http://www.jasonbaldridge.com http://twitter.com/jasonbaldridge
