Package | Description |
---|---|
edu.illinois.cs.cogcomp.lbjava.learn |
Modifier and Type | Field and Description |
---|---|
static Lexicon.CountPolicy |
Lexicon.CountPolicy.global
Represents global counting.
|
static Lexicon.CountPolicy |
Lexicon.CountPolicy.none
Represents no counting.
|
static Lexicon.CountPolicy |
Lexicon.CountPolicy.perClass
Represents per class counting.
|
Modifier and Type | Method and Description |
---|---|
Lexicon.CountPolicy |
Lexicon.getCountPolicy()
Returns the feature counting policy currently employed by this
lexicon.
|
Modifier and Type | Method and Description |
---|---|
void |
Lexicon.countFeatures(Lexicon.CountPolicy policy)
Call this method to initialize the lexicon to count
feature occurrences on each call to
lookup(feature, true) (counting still won't
happen on a call to lookup(feature, false) ). |
void |
Learner.countFeatures(Lexicon.CountPolicy policy)
Establishes a new feature counting policy for this learner's lexicon.
|
Learner |
BatchTrainer.preExtract(String exampleFile,
boolean zip,
Lexicon.CountPolicy countPolicy)
Performs labeled feature vector
pre-extraction into the specified file (or memory), replacing
BatchTrainer.parser with one that
reads from that file (or memory). |
Learner |
BatchTrainer.preExtract(String exampleFile,
Lexicon.CountPolicy countPolicy)
Performs labeled feature vector
pre-extraction into the specified file (or memory), replacing
BatchTrainer.parser with one that
reads from that file (or memory). |
Copyright © 2016. All rights reserved.