public interface POSContextGenerator extends BeamSearchContextGenerator<java.lang.String>
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getContext(int pos,
java.lang.String[] tokens,
java.lang.String[] prevTags,
java.lang.Object[] ac)
Returns the context for the specified position in the specified sequence (list).
|
java.lang.String[] getContext(int pos, java.lang.String[] tokens, java.lang.String[] prevTags, java.lang.Object[] ac)
BeamSearchContextGenerator
getContext
in interface BeamSearchContextGenerator<java.lang.String>
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 © 2010 - 2023 Adobe. All Rights Reserved