Commit 4c65ccba authored by stefan's avatar stefan

syllables loaded only for English

parent 6500519d
......@@ -72,8 +72,10 @@ public class Word extends AnalysisElement implements Comparable<Word>, Serializa
this.NE = NE;
setLanguage(lang);
this.usedReadingStrategies = EnumSet.noneOf(ReadingStrategyType.class);
this.syllabifiedCMUDict = SyllabifiedCMUDict.getInstance();
this.syllables = syllabifiedCMUDict.getDict().get(text.toLowerCase());
if (lang == Lang.en) {
this.syllabifiedCMUDict = SyllabifiedCMUDict.getInstance();
this.syllables = syllabifiedCMUDict.getDict().get(text.toLowerCase());
}
}
private void loadSentimentEntity() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment