public class LemmatizationResourceCompiler
extends java.lang.Object
Constructor and Description |
---|
LemmatizationResourceCompiler() |
Modifier and Type | Method and Description |
---|---|
static int |
buildLemmatizationResourceFromXML(java.lang.String sourcePath,
java.lang.String linguisticConfig,
java.lang.String tokenizationConfig,
java.lang.String outputPath)
Build a lemmatization resource.
|
static void |
dumpLemmatizationResourceToXML(java.lang.String resourcePath,
java.lang.String outputPath)
Dump a lemmatization resource to XML.
|
static LemmaDictionary |
readLemmaDictionary(java.lang.String filename)
Read a lemma directory.
|
public static void dumpLemmatizationResourceToXML(java.lang.String resourcePath, java.lang.String outputPath) throws java.lang.Exception
resourcePath
- The resource path.outputPath
- The XML result file path.java.lang.Exception
public static int buildLemmatizationResourceFromXML(java.lang.String sourcePath, java.lang.String linguisticConfig, java.lang.String tokenizationConfig, java.lang.String outputPath) throws java.lang.Exception
sourcePath
- The XML input file path.linguisticConfig
- The Linguistic.xml file path.tokenizationConfig
- The tokenization configuration.outputPath
- The output directory.java.lang.Exception
public static LemmaDictionary readLemmaDictionary(java.lang.String filename) throws java.lang.Exception
filename
- The XML input file path.java.lang.Exception
Copyright © 2013 Dassault Systèmes, All Rights Reserved.