| Package | Description |
|---|---|
| com.aliasi.crf |
Classes and interfaces for conditional random fields.
|
| Modifier and Type | Method and Description |
|---|---|
ChainCrfFeatureExtractor<E> |
ChainCrf.featureExtractor()
Return the feature extractor for this CRF.
|
| Modifier and Type | Method and Description |
|---|---|
static ChainCrfChunker |
ChainCrfChunker.estimate(Corpus<ObjectHandler<Chunking>> chunkingCorpus,
TagChunkCodec codec,
TokenizerFactory tokenizerFactory,
ChainCrfFeatureExtractor<String> featureExtractor,
boolean addInterceptFeature,
int minFeatureCount,
boolean cacheFeatureVectors,
RegressionPrior prior,
int priorBlockSize,
AnnealingSchedule annealingSchedule,
double minImprovement,
int minEpochs,
int maxEpochs,
Reporter reporter)
Return the chain CRF-based chunker estimated from the specified
corpus, which is converted to a tagging corpus using the
specified coder/decoder and tokenizer factory, then passed to
the chain CRF estimate method along with the rest of the
arguments.
|
static <F> ChainCrf<F> |
ChainCrf.estimate(Corpus<ObjectHandler<Tagging<F>>> corpus,
ChainCrfFeatureExtractor<F> featureExtractor,
boolean addInterceptFeature,
int minFeatureCount,
boolean cacheFeatureVectors,
boolean allowUnseenTransitions,
RegressionPrior prior,
int priorBlockSize,
AnnealingSchedule annealingSchedule,
double minImprovement,
int minEpochs,
int maxEpochs,
Reporter reporter)
Return the CRF estimated using stochastic gradient descent with
the specified prior from the specified corpus of taggings of
type
F pruned to the specified minimum feature count,
using the specified feature extractor, automatically adding an
intercept feature if the flag is true, allow unseen tag
transitions as specified, using the specified training
parameters for annealing, measuring convergence, and reporting
the incremental results to the specified reporter. |
| Constructor and Description |
|---|
ChainCrf(String[] tags,
boolean[] legalTagStarts,
boolean[] legalTagEnds,
boolean[][] legalTagTransitions,
Vector[] coefficients,
SymbolTable featureSymbolTable,
ChainCrfFeatureExtractor<E> featureExtractor,
boolean addInterceptFeature)
Construct a conditional random field from the specified tags,
feature vector coefficients, symbol table for feature, feature
extractors and flag indicating whether to add intercepts or
not.
|
ChainCrf(String[] tags,
Vector[] coefficients,
SymbolTable featureSymbolTable,
ChainCrfFeatureExtractor<E> featureExtractor,
boolean addInterceptFeature)
Construct a conditional random field from the specified tags,
feature vector coefficients, symbol table for feature, feature
extractors and flag indicating whether to add intercepts or
not.
|
Copyright © 2019 Alias-i, Inc.. All rights reserved.