Uses of Class
com.gengoai.hermes.RelationGraph
-
Packages that use RelationGraph Package Description com.gengoai.hermes Hermes is a framework for Natural Language Processing. -
-
Uses of RelationGraph in com.gengoai.hermes
Methods in com.gengoai.hermes that return RelationGraph Modifier and Type Method Description default RelationGraph
HString. annotationGraph(Tuple relationTypes, AnnotationType... annotationTypes)
Constructs a relation graph with the given relation types as the edges and the given annotation types as the vertices (theHString.interleaved(AnnotationType...)
method is used to get the annotations).default RelationGraph
HString. dependencyGraph()
Creates aRelationGraph
with dependency edges and token vertices.default RelationGraph
HString. dependencyGraph(@NonNull AnnotationType... types)
Creates aRelationGraph
with dependency edges and vertices made up of the given types.RelationGraph
RelationGraph. filterByEdge(@NonNull Predicate<RelationEdge> edgePredicate)
Filters the graph by evaluating the edges using the given predicate.RelationGraph
RelationGraph. filterByVertex(@NonNull Predicate<? super Annotation> vertexPredicate)
Filters the graph by evaluating the edges using the given predicate.static RelationGraph
RelationGraph. from(@NonNull Collection<RelationEdge> edges)
Creates a RelationGraph from a collection of edges
-