Package | Description |
---|---|
com.cybozu.labs.langdetect |
Provides the language detection classes.
|
Modifier and Type | Method and Description |
---|---|
static Detector |
DetectorFactory.create()
Construct Detector instance
|
static Detector |
DetectorFactory.create(double alpha)
Construct Detector instance with smoothing parameter
|
String |
Detector.detect()
Detect language of the target text and return the language name which has the highest probability.
|
ArrayList<Language> |
Detector.getProbabilities()
Get language candidates which have high probabilities
|
static LangProfile |
GenProfile.loadFromText(String lang,
File file)
Load text file with UTF-8 and generate its language profile
|
static LangProfile |
GenProfile.loadFromWikipediaAbstract(String lang,
File file)
Load Wikipedia abstract database file and generate its language profile
|
static void |
DetectorFactory.loadProfile(File profileDirectory)
Load profiles from specified directory.
|
static void |
DetectorFactory.loadProfile(List<String> json_profiles)
Load profiles from specified directory.
|
static void |
DetectorFactory.loadProfile(String profileDirectory)
Load profiles from specified directory.
|
void |
Detector.setPriorMap(HashMap<String,Double> priorMap)
Set prior information about language probabilities.
|
Copyright © 2016. All rights reserved.