|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - Type of tokens in the tagging.public interface NBestTagger<E>
The 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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.aliasi.tag.Tagger |
|---|
tag |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||