Search in sources :

Example 1 with OflazerAnalyzerRunner

use of zemberek.morphology.external.OflazerAnalyzerRunner in project zemberek-nlp by ahmetaa.

the class ZemberekNlpScripts method parseLargeVocabularyOflazer.

@Test
@Ignore("Not a Test.")
public void parseLargeVocabularyOflazer() throws IOException {
    OflazerAnalyzerRunner runner = new OflazerAnalyzerRunner(OFLAZER_ANALYZER_PATH.toFile(), OFLAZER_ANALYZER_PATH.resolve("tfeaturesulx.fst").toFile());
    Path wordFile = DATA_PATH.resolve("all-words-sorted-freq.txt");
    // Path wordFile = DATA_PATH.resolve("vocab-corpus-and-zemberek");
    Path outDir = DATA_PATH.resolve("out");
    Files.createDirectories(outDir);
    Path outPath = outDir.resolve("oflazer-parses.txt");
    runner.parseSentences(wordFile.toFile(), outPath.toFile());
}
Also used : Path(java.nio.file.Path) OflazerAnalyzerRunner(zemberek.morphology.external.OflazerAnalyzerRunner) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Path (java.nio.file.Path)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 OflazerAnalyzerRunner (zemberek.morphology.external.OflazerAnalyzerRunner)1