E - Type of tokens in the tagging.public interface NBestTagger<E> extends Tagger<E>
NBestTagger<E> interface for objects that tag a list of
objects with multiple tagged results. The number of results may be
limited, which may improve efficiency for large result sets. The
n-best scored taggings are returned in order through an iterator.
An optional method returns the same n-best list with scores normalized to conditional probabilities.
| Modifier and Type | Method and Description |
|---|---|
Iterator<ScoredTagging<E>> |
tagNBest(List<E> tokens,
int maxResults)
Return an iterator over the
n-best scored taggings for
the specified input tokens up to a specified maximum n. |
Iterator<ScoredTagging<E>> |
tagNBestConditional(List<E> tokens,
int maxResults)
Return an iterator over the
n-best scored taggings for
the specified input tokens up to a specified maximum n,
with scores normalized to conditional probabilities. |
Iterator<ScoredTagging<E>> tagNBest(List<E> tokens, int maxResults)
n-best scored taggings for
the specified input tokens up to a specified maximum n.tokens - Input tokens to tag.maxResults - Maximum number of results to return.Iterator<ScoredTagging<E>> tagNBestConditional(List<E> tokens, int maxResults)
n-best scored taggings for
the specified input tokens up to a specified maximum n,
with scores normalized to conditional probabilities.
Optional operation.
tokens - Input tokens to tag.maxResults - Maximum number of results to return.UnsupportedOperationException - If this method is not
supported.Copyright © 2016 Alias-i, Inc.. All rights reserved.