Object

org.clulab.discourse.rstparser

Utils

Related Doc: package rstparser

Permalink

object Utils

Various utils useful for feature generation, etc. User: mihais Date: 5/29/14

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Utils
  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 countNgrams(trees: List[(DiscourseTree, Document)]): Counter[String]

    Permalink
  7. def countWords(trees: List[(DiscourseTree, Document)]): Counter[String]

    Permalink
  8. def deps(s: Sentence): DirectedGraph[String]

    Permalink

    Fetches dependencies from a given sentence Note: RST parsing works better with basic dependencies, so we ALWAYS use them here!

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def extractConnectives(tree: DiscourseTree, doc: Document): Counter[String]

    Permalink
  12. def extractLeftMost(t: DiscourseTree, nodes: ArrayBuffer[DiscourseTree]): Unit

    Permalink
  13. def extractRightMost(t: DiscourseTree, nodes: ArrayBuffer[DiscourseTree]): Unit

    Permalink
  14. def extractTags(tree: DiscourseTree, doc: Document): Array[String]

    Permalink
  15. def extractWords(tree: DiscourseTree, doc: Document, words: Counter[String] = null, threshold: Int = 1000): Array[String]

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def findCommonAncestorsFromDependencies(deps: DirectedGraph[String], first: Int, last: Int): Iterable[Int]

    Permalink
  18. def findFeatureGroups(sep: String, lexicon: Lexicon[String]): Map[String, Set[Int]]

    Permalink
  19. def findSmallestCommonAncestor(root: Tree, first: Int, last: Int): Tree

    Permalink
  20. def findSubtree(tree: Tree, start: Int, end: Int): Tree

    Permalink

    Finds the smallest subtree with label S* that includes this span

  21. def findSubtree(tree: DiscourseTree, doc: Document): Tree

    Permalink

    Finds the smallest subtree with label S* that includes this discourse fragment

  22. def findSyntacticHead(root: Tree, parent: Tree, first: Int, last: Int): (Tree, Tree)

    Permalink
  23. def findSyntacticHeadFromDependencies(deps: DirectedGraph[String], first: Int, last: Int): (Int, Int, String)

    Permalink
  24. def findSyntacticParent(root: Tree, position: Int, parent: Tree = null): (Tree, Tree)

    Permalink
  25. def findSyntacticParentWithRightSibling(root: Tree, position: Int, parent: Tree = null, right: Tree = null): (Tree, Tree, Tree)

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hasDeps(s: Sentence): Boolean

    Permalink
  28. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  30. def lrFactory(): Classifier[String, String]

    Permalink
  31. def mkDiscretePosition(offset: Int, total: Int): String

    Permalink
  32. def mkGoldEDUs(tree: DiscourseTree, doc: Document): Array[Array[(Int, Int)]]

    Permalink

    Generates a compact description of the EDUs in this document, using a formalism similar to Feng and Hirst (2012)

    Generates a compact description of the EDUs in this document, using a formalism similar to Feng and Hirst (2012)

    tree

    Discourse tree for this document

    returns

    Format: one sentence per element; each sentence stores an array of EDUs; end token offsets are inclusive!

  33. def mkNgram(words: Array[String], start: Int, end: Int): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def perceptronFactory(): Classifier[String, String]

    Permalink
  38. def prefix(f: String, sep: String): String

    Permalink
  39. def printTopWeights(c: LiblinearClassifier[String, String]): Unit

    Permalink
  40. def sameSubtree(t1: Tree, t2: Tree): Boolean

    Permalink
  41. def svmFactory(): Classifier[String, String]

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

    Permalink
    Definition Classes
    AnyRef
  43. def toDecile(v: Int, max: Int): Int

    Permalink
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def tokenCount(doc: Document): Int

    Permalink
  46. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped