Uses of Class
com.gengoai.hermes.lexicon.LexiconEntry
-
Packages that use LexiconEntry Package Description com.gengoai.hermes.annotator com.gengoai.hermes.lexicon -
-
Uses of LexiconEntry in com.gengoai.hermes.annotator
Methods in com.gengoai.hermes.annotator that return LexiconEntry Modifier and Type Method Description protected LexiconEntry
FuzzyLexiconAnnotator. scoreSpan(HString span)
protected abstract LexiconEntry
ViterbiAnnotator. scoreSpan(HString span)
Scores the given span. -
Uses of LexiconEntry in com.gengoai.hermes.lexicon
Methods in com.gengoai.hermes.lexicon that return LexiconEntry Modifier and Type Method Description static LexiconEntry
LexiconEntry. empty()
Empty lexicon entry.static LexiconEntry
LexiconEntry. of(@NonNull String lemma, double probability, int tokenLength)
Constructs a LexiconEntry for the given lemma which has the given probability and token length.static LexiconEntry
LexiconEntry. of(@NonNull String lemma, double probability, String tag, int tokenLength)
Constructs a LexiconEntry for the given lemma which has the given probability, tag, and token length.static LexiconEntry
LexiconEntry. of(@NonNull String lemma, double probability, String tag, LyreExpression constraint, int tokenLength)
Constructs a LexiconEntry for the given lemma which has the given probability, tag, constraint, and token length.static LexiconEntry
LexiconEntry. of(@NonNull String lemma, int tokenLength)
Constructs a LexiconEntry for the given lemma which has the given token length.static LexiconEntry
LexiconEntry. of(@NonNull String lemma, String tag, int tokenLength)
Constructs a LexiconEntry for the given lemma which has the given tag and token length.Methods in com.gengoai.hermes.lexicon that return types with arguments of type LexiconEntry Modifier and Type Method Description Set<LexiconEntry>
DiskLexicon. entries()
abstract Set<LexiconEntry>
Lexicon. entries()
Set<LexiconEntry>
TrieLexicon. entries()
Set<LexiconEntry>
DiskLexicon. get(String word)
abstract Set<LexiconEntry>
Lexicon. get(@NonNull String word)
Returns theLexiconEntry
associated with a given word in the Lexicon or an empty set if there are none.Set<LexiconEntry>
TrieLexicon. get(String word)
List<LexiconEntry>
DiskLexicon. match(@NonNull HString string)
List<LexiconEntry>
DiskLexicon. match(String hString)
abstract List<LexiconEntry>
Lexicon. match(@NonNull HString string)
Gets the matched entries for a givenHString
abstract List<LexiconEntry>
Lexicon. match(@NonNull String term)
Returns theLexiconEntry
associated with a given word in the Lexicon or an empty set if there are none.List<LexiconEntry>
TrieLexicon. match(HString string)
List<LexiconEntry>
TrieLexicon. match(String hString)
Methods in com.gengoai.hermes.lexicon with parameters of type LexiconEntry Modifier and Type Method Description void
DiskLexicon. add(@NonNull LexiconEntry lexiconEntry)
abstract void
Lexicon. add(LexiconEntry lexiconEntry)
Adds an entry to the lexiconvoid
TrieLexicon. add(@NonNull LexiconEntry lexiconEntry)
int
LexiconEntry. compareTo(LexiconEntry o)
Method parameters in com.gengoai.hermes.lexicon with type arguments of type LexiconEntry Modifier and Type Method Description void
DiskLexicon. addAll(@NonNull Iterable<LexiconEntry> lexiconEntries)
void
Lexicon. addAll(@NonNull Iterable<LexiconEntry> lexiconEntries)
Adds all lexicon entries in the given iterable to the lexiconConstructors in com.gengoai.hermes.lexicon with parameters of type LexiconEntry Constructor Description LexiconMatch(@NonNull HString span, @NonNull LexiconEntry entry)
Instantiates a new Lexicon match.
-