Skip to content

Commit ca9c18a

Browse files
committed
removed prints
1 parent fd2ac1f commit ca9c18a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/application/japanese_text_processing/deconjugate.dart

+2-9
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ List<String> getDeconjugatedTerms(String word){
2121
List<TokenNode> nodes = GetIt.I<Mecab>().parse(word)..removeLast();
2222
List<TokenNode> maxLengthWord = selectMaxLengthWord(nodes);
2323

24-
print(maxLengthWord.map((e) {
25-
for (var i = 0; i < e.features.length; i++) {
26-
print("$i ${e.features[i]}");
27-
}
28-
}).toList());
29-
3024
for (int i = maxLengthWord.length-1; i >= 0; i--){
3125
// deconjugate the full word by only modifying the ending
3226
if(!compareMecabOut(maxLengthWord[i].features, [inflectionDependentWord])){
@@ -42,11 +36,10 @@ List<String> getDeconjugatedTerms(String word){
4236
.map((List<String> f) => f..insert(0, nodes[i].surface))
4337
.toList();
4438
}
45-
4639
}
4740
}
4841

4942
// remove duplicates
50-
print("TestL $deconjugations");
51-
return deconjugations.map((e) => e.join(),).toList();
43+
return deconjugations.map((e) => e.join())
44+
.toSet().toList();
5245
}

0 commit comments

Comments
 (0)