Package org.languagetool.tagging.uk
Class CompoundDebugLogger
java.lang.Object
org.languagetool.tagging.uk.CompoundDebugLogger
Helps to write down compound word tagging results so we can analyze the algorithm effectiveness
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate BufferedWriterprivate BufferedWriterprivate BufferedWriterprivate BufferedWriterprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate BufferedWritercreateDebugOutFile(String filename) private voiddebug_tagged_write(List<AnalyzedToken> analyzedTokens, BufferedWriter writer) private voidvoidlogGenderMix(String word, boolean leftNv, String leftPosTag, String rightPosTag) voidlogLine(BufferedWriter writer, String word) voidlogTaggedCompound(List<AnalyzedToken> guessedCompoundTags) (package private) voidlogUnknownCompound(String word)
-
Field Details
-
DEBUG_COMPOUNDS_PROPERTY
- See Also:
-
compoundUnknownDebugWriter
-
compoundTaggedDebugWriter
-
compoundGenderMixDebugWriter
-
compoundTaggedLemmaDebugWriter
-
cnt
private static int cnt
-
-
Constructor Details
-
CompoundDebugLogger
public CompoundDebugLogger()
-
-
Method Details
-
initDebugCompounds
private void initDebugCompounds() -
createDebugOutFile
- Throws:
IOException
-
logTaggedCompound
-
logLine
-
logUnknownCompound
-
debug_tagged_write
-
logGenderMix
-