Package org.languagetool.rules
Class ConfusionSetLoader
- java.lang.Object
-
- org.languagetool.rules.ConfusionSetLoader
-
public class ConfusionSetLoader extends java.lang.Object
Loads a confusion set from a plain text file (UTF-8). Seeconfusion_sets.txt
for a description of the file format.- Since:
- 2.7
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CHARSET
-
Constructor Summary
Constructors Constructor Description ConfusionSetLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<ConfusionPair>>
loadConfusionPairs(java.io.InputStream stream)
-
-
-
Field Detail
-
CHARSET
private static final java.lang.String CHARSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConfusionPairs
public java.util.Map<java.lang.String,java.util.List<ConfusionPair>> loadConfusionPairs(java.io.InputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
-