Package com.optimaize.langdetect.cybozu
Class GenProfile
java.lang.Object
com.optimaize.langdetect.cybozu.GenProfile
Load Wikipedia's abstract XML as corpus and generate its language profile in JSON format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LangProfile
Load Wikipedia abstract database file and generate its language profile
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
GenProfile
public GenProfile()
-
-
Method Details
-
load
Load Wikipedia abstract database file and generate its language profile- Parameters:
lang
- target language namefile
- target database file path- Returns:
- Language profile instance
-