I think you are looking for the WindowFeatureGenerator [1]. You can set the size of the window by specifying the number of previous tokens and number of next tokens.
Jeff [1] https://opennlp.apache.org/documentation/1.5.3/apidocs/opennlp-tools/opennlp/tools/util/featuregen/WindowFeatureGenerator.html On Sun, May 1, 2016 at 5:16 AM, Damiano Porta <[email protected]> wrote: > > Hello everybody > How many surrounding tokens are kept into account to find the entity using > a maxent model? > Basically a maxent model should detect an entity looking at the surronding > tokens, right ? > I would like to understand if: > > 1. can i set the number of tokens on the left side? > 2. can i set the number of tokens on the right side too ? > > Thank you in advance for the clarification > Best > > Damiano
