edu.knowitall.tool.parse.graph

DependencyGraph

class DependencyGraph extends AnyRef

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DependencyGraph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DependencyGraph(nodes: Iterable[DependencyNode], dependencies: Iterable[Dependency])

  2. new DependencyGraph(nodes: SortedSet[DependencyNode], dependencies: SortedSet[Dependency])

  3. new DependencyGraph(nodes: SortedSet[DependencyNode], dependencies: SortedSet[Dependency], graph: Graph[DependencyNode])

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def adjacentComponents(pred: (Edge[DependencyNode]) ⇒ Boolean): Set[Set[DependencyNode]]

    Find components that are connected by the predicate.

    Find components that are connected by the predicate. Then, split components into subcomponents in which all vertices correspond to adjacent words in the source sentence.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def canEqual(that: Any): Boolean

  9. def clone(): AnyRef

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

  11. def collapseAdjacentGroups(pred: (Edge[DependencyNode]) ⇒ Boolean)(implicit merge: (Traversable[DependencyNode]) ⇒ DependencyNode): DependencyGraph

  12. def collapseNNPOf: DependencyGraph

  13. def collapseNounGroups(dividors: List[String] = List.empty): DependencyGraph

  14. def collapseWeakLeaves: DependencyGraph

  15. def collapseXNsubj: DependencyGraph

  16. val dependencies: SortedSet[Dependency]

  17. def directedAdjacentCollapse(label: String): DependencyGraph

  18. def directedAdjacentCollapse(labels: Set[String]): DependencyGraph

  19. def dot(title: String, nodeStyle: Map[DependencyNode, String], edgeStyle: Map[Edge[DependencyNode], String]): String

  20. def dot(title: String = this.text): String

  21. def dotWithHighlights(title: String, specialNodes: Set[DependencyNode], specialEdges: Set[Edge[DependencyNode]]): String

  22. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    DependencyGraph → AnyRef → Any
  24. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  26. val graph: Graph[DependencyNode]

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def interval: Interval

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def length: Int

  31. def map(f: (DependencyNode) ⇒ DependencyNode): DependencyGraph

  32. def mapGraph(f: (Graph[DependencyNode]) ⇒ Graph[DependencyNode]): DependencyGraph

  33. def mapPostags(f: (String) ⇒ String): DependencyGraph

  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. val nodes: SortedSet[DependencyNode]

  36. def normalize: DependencyGraph

  37. final def notify(): Unit

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

    Definition Classes
    AnyRef
  39. def printDependencies(): Unit

  40. def printDot(writer: Appendable, title: String, nodeStyle: Map[DependencyNode, String], edgeStyle: Map[Edge[DependencyNode], String]): Unit

  41. def printDot(writer: Appendable, title: String = this.text): Unit

  42. def printDotWithHighlights(writer: Appendable, title: String, specialNodes: Set[DependencyNode], specialEdges: Set[Edge[DependencyNode]]): Unit

  43. def serializeSeq: Iterator[String]

  44. def simplifyPostags: DependencyGraph

  45. def simplifyVBPostags: DependencyGraph

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. val text: String

    the text of the source sentence

  48. def toString(): String

    Definition Classes
    DependencyGraph → AnyRef → Any
  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def serialize: String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.5) Use StringFormat instead.

Inherited from AnyRef

Inherited from Any

Ungrouped