Package org.nlpub.watset.util
Interface ABCFormat
-
public interface ABCFormatUtilities for handling the ABC(source, target, weight)edge list format.
-
-
Method Summary
Static Methods Modifier and Type Method Description static org.jgrapht.Graph<String,org.jgrapht.graph.DefaultWeightedEdge>parse(Stream<String> stream)Parse the string stream of ABC-formatted edges.static org.jgrapht.Graph<String,org.jgrapht.graph.DefaultWeightedEdge>parse(Stream<String> stream, String regex)Parse the string stream of ABC-formatted edges.
-
-
-
Field Detail
-
SEPARATOR
static final String SEPARATOR
The default separator, expressed by the tab symbol.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
static org.jgrapht.Graph<String,org.jgrapht.graph.DefaultWeightedEdge> parse(Stream<String> stream, String regex)
Parse the string stream of ABC-formatted edges.- Parameters:
stream- the input streamregex- the separator regular expression- Returns:
- the graph represented in the stream
-
-