Object

org.clulab.processors.clu.syntax

EnhancedDependencies

Related Doc: package syntax

Permalink

object EnhancedDependencies

Converts Stanford basic dependencies to collapsed ones This follows the rules from http://universaldependencies.org/u/overview/enhanced-syntax.html (but applied to Stanford deps rather than universal ones) We support: - Collapsing of prepositions to the prep_* label - Controlled/raised subjects - Propagating subjects and objects in conjoined verbs - Propagating conjoined subjects and objects to same verb - Pushing subjects/objects inside relative clauses User: mihais Date: 8/1/17

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnhancedDependencies
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collapsePrepositions(sentence: Sentence, dgi: DirectedGraphIndex[String]): Unit

    Permalink

    Collapses prep + pobj into prep_x Mary gave a book to Jane => prep_to from 1 to 5

    Collapses prep + pobj into prep_x Mary gave a book to Jane => prep_to from 1 to 5

    sentence

    The sentence to operate on

    dgi

    The directed graph of collapsed dependencies at this stage

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

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def generateEnhancedDependencies(sentence: Sentence, dg: DirectedGraph[String]): DirectedGraph[String]

    Permalink
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def propagateConjSubjectsAndObjects(sentence: Sentence, dgi: DirectedGraphIndex[String]): Unit

    Permalink

    Propagates conjoined subjects and objects to same verb Paul and Mary are reading a book => nsubj from 4 to 0 and from 4 to 2 John is reading a book and a newspaper => dobj from 2 to 4 and from 2 to 7

    Propagates conjoined subjects and objects to same verb Paul and Mary are reading a book => nsubj from 4 to 0 and from 4 to 2 John is reading a book and a newspaper => dobj from 2 to 4 and from 2 to 7

    sentence

    The sentence to operate on

    dgi

    The directed graph of collapsed dependencies at this stage

  18. def propagateSubjectsAndObjectsInConjVerbs(sentence: Sentence, dgi: DirectedGraphIndex[String]): Unit

    Permalink

    Propagates subjects/objects between conjoined verbs The store buys and sells cameras => nsubj from 2 to 1 and from 4 to 1; dobj from 2 to 5 and from 4 to 5

    Propagates subjects/objects between conjoined verbs The store buys and sells cameras => nsubj from 2 to 1 and from 4 to 1; dobj from 2 to 5 and from 4 to 5

    sentence

    The sentence to operate on

    dgi

    The directed graph of collapsed dependencies at this stage

  19. def pushSubjectsObjectsInsideRelativeClauses(sentence: Sentence, dgi: DirectedGraphIndex[String]): Unit

    Permalink

    Propagates subjects and objects inside relative clauses The boy who lived => nsubj from 3 to 1 the book, which I read, was great.

    Propagates subjects and objects inside relative clauses The boy who lived => nsubj from 3 to 1 the book, which I read, was great. => dobj from 5 to 1

    sentence

    The sentence to operate on

    dgi

    The directed graph of collapsed dependencies at this stage

  20. def raiseSubjects(dgi: DirectedGraphIndex[String]): Unit

    Permalink

    Pushes subjects inside xcomp clauses Mary wants to buy a book => nsubj from 3 to 0

    Pushes subjects inside xcomp clauses Mary wants to buy a book => nsubj from 3 to 0

    dgi

    The directed graph of collapsed dependencies at this stage

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

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped