Package org.languagetool.rules
Class ConfusionSetLoader
- java.lang.Object
-
- org.languagetool.rules.ConfusionSetLoader
-
public class ConfusionSetLoader extends 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
-
-
Constructor Summary
Constructors Constructor Description ConfusionSetLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<ConfusionPair>>
loadConfusionPairs(InputStream stream)
-
-
-
Method Detail
-
loadConfusionPairs
public Map<String,List<ConfusionPair>> loadConfusionPairs(InputStream stream) throws IOException
- Throws:
IOException
-
-