com.aliasi.tag
Interface MarginalTagger<E>
- Type Parameters:
E - Type of tokens in the tagging.
- All Known Implementing Classes:
- ChainCrf, HmmDecoder
public interface MarginalTagger<E>
The MarginalTagger<E> interface is for objects that tag a
list of tokens with marginal per-tag and transition probabilities.
The result of tagging is a tag lattice that allows the efficient
evaluation of the marginal probabilities of tags or tag sequences
at specified positions.
- Since:
- LingPipe3.9
- Version:
- 3.9
- Author:
- Bob Carpenter
tagMarginal
TagLattice<E> tagMarginal(List<E> tokens)
- Return the marginal tagging for the specified list of
input tokens.
- Parameters:
tokens - Input tokens to tag.
- Returns:
- The lattice of tags for the specified tokens.