Package org.nlpub.watset.util
Class ILEFormat
- java.lang.Object
-
- org.nlpub.watset.util.ILEFormat
-
public final class ILEFormat extends Object
Utilities for handling the ILE(identifier, length, elements)file format.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String>parse(Stream<String> stream)Read the ILE-formatted file representing the clusters.static voidwrite(BufferedWriter writer, org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String> clustering)Write the ILE-formatted file representing the clusters.
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
The default separator, expressed by the tab symbol.- See Also:
- Constant Field Values
-
DELIMITER
public static final String DELIMITER
The default delimiter, expressed by comma and space.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String> parse(Stream<String> stream)
Read the ILE-formatted file representing the clusters.- Parameters:
stream- the input stream- Returns:
- the clusters
-
write
public static void write(BufferedWriter writer, org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<String> clustering) throws IOException
Write the ILE-formatted file representing the clusters.- Parameters:
writer- the writerclustering- the clusters- Throws:
IOException- if an I/O error occurs
-
-