public class LemmatizerBuilder
extends com.exalead.gni.GNIObject
Constructor and Description |
---|
LemmatizerBuilder(Normalizer normalizer,
int lang)
Initialize a new lemmatizer builder
|
Modifier and Type | Method and Description |
---|---|
boolean |
addInflected(int lid,
java.lang.String form,
int gender,
int number)
Add an inflected form on an added lemma
|
int |
addLemma(java.lang.String lemma,
int pos)
Add a lemma and return its identifier
|
int |
addLemma(java.lang.String lemma,
int pos,
int trustLevel)
Add a lemma and return its identifier
|
boolean |
compile(java.lang.String dirname)
Compile the resource
|
boolean |
compile(java.lang.String dirname,
boolean buildExpander)
Deprecated.
|
protected void |
finalize() |
void |
load(LemmaDictionary dict)
Load a lemma dictionary
|
public LemmatizerBuilder(Normalizer normalizer, int lang)
normalizer
- The normalizer to uselang
- The resource languagepublic void load(LemmaDictionary dict)
dict
- The dictionarypublic int addLemma(java.lang.String lemma, int pos, int trustLevel)
lemma
- The lemmapos
- Its PoStrustLevel
- A trust levelpublic int addLemma(java.lang.String lemma, int pos)
lemma
- The lemmapos
- Its PoSpublic boolean addInflected(int lid, java.lang.String form, int gender, int number)
lid
- The lemma identifierform
- The inflected formgender
- The inflected gendernumber
- The inflected numberpublic boolean compile(java.lang.String dirname)
dirname
- The output directory@Deprecated public boolean compile(java.lang.String dirname, boolean buildExpander)
protected void finalize()
finalize
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.