public class JFastText extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JFastText.ProbLabel |
| Constructor and Description |
|---|
JFastText() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBucket() |
int |
getContextWindowSize() |
int |
getDim() |
int |
getEpoch() |
String |
getLabelPrefix() |
List<String> |
getLabels() |
String |
getLossName() |
double |
getLr() |
int |
getLrUpdateRate() |
int |
getMaxn() |
int |
getMinCount() |
int |
getMinCountLabel() |
int |
getMinn() |
String |
getModelName() |
int |
getNLabels() |
int |
getNSampledNegatives() |
int |
getNWords() |
String |
getPretrainedVectorsFileName() |
double |
getSamplingThreshold() |
List<Float> |
getVector(String word) |
int |
getWordNgrams() |
List<String> |
getWords() |
void |
loadModel(String modelFile) |
static void |
main(String[] args) |
String |
predict(String text) |
List<String> |
predict(String text,
int k) |
JFastText.ProbLabel |
predictProba(String text) |
List<JFastText.ProbLabel> |
predictProba(String text,
int k) |
void |
runCmd(String[] args) |
void |
test(String testFile) |
void |
test(String testFile,
int k) |
void |
unloadModel() |
public void runCmd(String[] args)
public void loadModel(String modelFile)
public void unloadModel()
public void test(String testFile)
public void test(String testFile, int k)
public JFastText.ProbLabel predictProba(String text)
public List<JFastText.ProbLabel> predictProba(String text, int k)
public int getNWords()
public int getNLabels()
public double getLr()
public int getLrUpdateRate()
public int getDim()
public int getContextWindowSize()
public int getEpoch()
public int getMinCount()
public int getMinCountLabel()
public int getNSampledNegatives()
public int getWordNgrams()
public String getLossName()
public String getModelName()
public int getBucket()
public int getMinn()
public int getMaxn()
public double getSamplingThreshold()
public String getLabelPrefix()
public String getPretrainedVectorsFileName()
public static void main(String[] args)
Copyright © 2018. All rights reserved.