org.allenai.nlpstack.core.parse.graph

DependencyGraph

Related Docs: object DependencyGraph | package graph

class DependencyGraph extends Graph[DependencyNode]

A representation of a graph over dependencies. This richer representation may include the text of the original sentence, the original nodes (before collapsing), and the original dependencies.

Linear Supertypes
Graph[DependencyNode], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DependencyGraph
  2. Graph
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type E = Edge[DependencyNode]

    Definition Classes
    Graph
  2. type G = Graph[DependencyNode]

    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def areConnected(vertices: Iterable[DependencyNode]): Boolean

    Test if the nodes are connected.

    Test if the nodes are connected. In other words, for each node, there exists another node in the set that is its neighbor.

    Definition Classes
    Graph
  5. def areNeighbors(a: DependencyNode, b: DependencyNode): Boolean

    Test if the two nodes border each other.

    Test if the two nodes border each other.

    Definition Classes
    Graph
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bipaths(vertices: Set[DependencyNode], maxLength: Option[Int] = None): Set[Bipath[DependencyNode]]

    Definition Classes
    Graph
  8. def bipaths(start: DependencyNode, end: DependencyNode): List[Bipath[DependencyNode]]

    Definition Classes
    Graph
  9. def canEqual(that: Any): Boolean

    Definition Classes
    Graph
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def collapse: DependencyGraph

    Approximate Stanford's procedure to create collapsed dependencies.

  12. def collapse(set: Set[DependencyNode])(implicit merge: (Traversable[DependencyNode]) ⇒ DependencyNode): Graph[DependencyNode]

    Definition Classes
    Graph
  13. def collapse(collapsable: (E) ⇒ Boolean)(implicit merge: (Traversable[DependencyNode]) ⇒ DependencyNode): G

    Definition Classes
    Graph
  14. def collapseGroups(groups: Iterable[Set[DependencyNode]])(implicit merge: (Traversable[DependencyNode]) ⇒ DependencyNode): Graph[DependencyNode]

    Definition Classes
    Graph
  15. def collapseXNsubj: DependencyGraph

    Simplify xsubj and nsubj to just subj.

  16. def components(pred: (Edge[DependencyNode]) ⇒ Boolean): Set[Set[DependencyNode]]

    Definition Classes
    Graph
  17. def connected(v: DependencyNode, pred: (DirectedEdge[DependencyNode]) ⇒ Boolean): Set[DependencyNode]

    Definition Classes
    Graph
  18. def dedges(vertex: DependencyNode): Set[DirectedEdge[DependencyNode]]

    Definition Classes
    Graph
  19. def degree(v: DependencyNode): Int

    Definition Classes
    Graph
  20. val dependencies: Set[Edge[DependencyNode]]

  21. def edges(vertex: DependencyNode): Set[E]

    Definition Classes
    Graph
  22. val edges: Set[Edge[DependencyNode]]

    Definition Classes
    Graph
  23. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def equals(that: Any): Boolean

    Definition Classes
    Graph → AnyRef → Any
  25. def expand(vertices: Set[DependencyNode], pred: (DirectedEdge[DependencyNode]) ⇒ Boolean): Set[DependencyNode]

    Definition Classes
    Graph
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. val incoming: Map[DependencyNode, Set[Edge[DependencyNode]]]

    Definition Classes
    Graph
  30. def indegree(v: DependencyNode): Int

    Definition Classes
    Graph
  31. def inferiors(v: DependencyNode, cond: (E) ⇒ Boolean = x => true): Set[DependencyNode]

    Iteratively expand a vertex to all vertices beneath it.

    Iteratively expand a vertex to all vertices beneath it.

    returns

    the set of vertices beneath vertex

    Definition Classes
    Graph
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isTree(): Boolean

    Definition Classes
    Graph
  34. def joined: JoinedDependencyGraph

  35. def map[U](f: (DependencyNode) ⇒ U): Graph[U]

    Definition Classes
    Graph
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def neighbors(v: DependencyNode): Set[DependencyNode]

    all vertices seperated from v.

    all vertices seperated from v.

    Definition Classes
    Graph
  38. def neighbors(v: DependencyNode, pred: (DirectedEdge[DependencyNode]) ⇒ Boolean): Set[DependencyNode]

    all vertices seperated from v by a single edge that satisfied pred.

    all vertices seperated from v by a single edge that satisfied pred.

    Definition Classes
    Graph
  39. def nodeById(id: Int): Option[DependencyNode]

  40. val nodes: Set[DependencyNode]

  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. def outdegree(v: DependencyNode): Int

    Definition Classes
    Graph
  44. val outgoing: Map[DependencyNode, Set[Edge[DependencyNode]]]

    Definition Classes
    Graph
  45. def predecessors(v: DependencyNode, pred: (Edge[DependencyNode]) ⇒ Boolean): Set[DependencyNode]

    all vertices before incoming edges to v that satisfy the supplied predicate.

    all vertices before incoming edges to v that satisfy the supplied predicate.

    Definition Classes
    Graph
  46. def predecessors(v: DependencyNode): Set[DependencyNode]

    all vertices before incoming edges to v.

    all vertices before incoming edges to v.

    Definition Classes
    Graph
  47. def print(): Unit

    Definition Classes
    Graph
  48. def print(writer: Appendable): Unit

    Definition Classes
    Graph
  49. val root: Option[DependencyNode]

  50. def successors(v: DependencyNode, pred: (Edge[DependencyNode]) ⇒ Boolean): Set[DependencyNode]

    all vertices after outgoing edges to v that satisfy the supplied predicate.

    all vertices after outgoing edges to v that satisfy the supplied predicate.

    Definition Classes
    Graph
  51. def successors(v: DependencyNode): Set[DependencyNode]

    all vertices after outgoing edges to v.

    all vertices after outgoing edges to v.

    Definition Classes
    Graph
  52. def superior(vertices: Set[DependencyNode]): DependencyNode

    Find the node which is most superior.

    Find the node which is most superior.

    Definition Classes
    Graph
    Exceptions thrown

    IllegalArgumentException nodes are not connected or no one superior

  53. def superiors(v: DependencyNode, cond: (E) ⇒ Boolean = x => true): Set[DependencyNode]

    Iteratively expand a vertex to all vertices above it.

    Iteratively expand a vertex to all vertices above it.

    returns

    the set of vertices beneath vertex

    Definition Classes
    Graph
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. def toDot(): String

    Definition Classes
    Graph
  56. def toString(): String

    Definition Classes
    DependencyGraphGraph → AnyRef → Any
  57. def tokenized(tokens: Seq[Lemmatized[PostaggedToken]]): Graph[TokenDependencyNode]

  58. def vertexBipaths(start: DependencyNode, end: DependencyNode): List[List[DependencyNode]]

    Find a path from vertex (start) to vertex (end).

    Find a path from vertex (start) to vertex (end).

    Definition Classes
    Graph
  59. val vertices: Set[DependencyNode]

    Definition Classes
    Graph
  60. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Graph[DependencyNode]

Inherited from AnyRef

Inherited from Any

Ungrouped