public interface POSContextGenerator extends BeamSearchContextGenerator<String>
|Modifier and Type||Method and Description|
Returns the context for the specified position in the specified sequence (list).
String getContext(int pos, String tokens, String prevTags, Object ac)
pos- The index of the sequence.
tokens- The sequence of items over which the beam search is performed.
prevTags- The sequence of decisions made prior to the context for which this decision is being made.
ac- Any addition context specific to a class implementing this interface.
Copyright © 2017 The Apache Software Foundation. All rights reserved.