Packages

object NlpProse

Stanford dependency trees and associated methods

Linear Supertypes
AnyRef, Any
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NlpProse
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class DepRel(gov: Token, dep: Token, deptype: String) extends Product with Serializable

    Stanford dependency relation

  2. trait ParseData extends AnyRef

    The trait for all data to be parsed to mathematics

  3. class ProseExtractor[A] extends AnyRef

    Generic Extractor from ProseTree

  4. case class ProseTree(root: Token, tree: List[DepRel]) extends ParseData with Product with Serializable

    Stanford Dependency tree

  5. case class SplitTree(edge: DepRel, subtree: ProseTree, pruned: ProseTree) extends Product with Serializable
  6. case class Token(word: String, idx: Int) extends Product with Serializable

    Tokens

  7. class TypeListMatch extends AnyRef
  8. class TypeMatch extends AnyRef

    Extractor matching Dependency type

  9. class TypeWordMatch extends AnyRef

    Extractor matching Dependency type and Word of Dependent Token

Value Members

  1. def findroot(t: List[DepRel]): Token

    Returns root of dependency tree

  2. def mweFold(t: ProseTree): ProseTree

    returns new tree folding together multi-word expressions

  3. def mweMerge(t: ProseTree, d: DepRel): DepRel

    returns Dependency Relation obtained by merging in multi-word expressions

  4. def mweTail(t: ProseTree, node: Token): Token

    Find the string of multi-word expressions starting at a token

  5. object Advcl extends TypeMatch
  6. object Argument extends TypeListMatch

    Fallback for all arguments

  7. object Ccomp extends TypeMatch

    Extractor for Clausal complement

  8. object Conj
  9. object Cop extends ProseExtractor[(ProseTree, ProseTree)]

    Extractor for "cop" identifying the subject

  10. object CopRel extends TypeMatch

    Extractor for "cop" relation

  11. object Gt extends TypeWordMatch

    Extractor for >

  12. object IfMark extends TypeWordMatch
  13. object Lt extends TypeWordMatch

    Extractor for <

  14. object Modifier extends TypeListMatch

    Fallback for all modifiers

  15. object Nsubj extends TypeMatch

    Extractor for nsubj

  16. object Parataxis extends TypeMatch
  17. object Prep
  18. object ProseTree extends Serializable
  19. object QuantMod extends TypeMatch

    Extractor for quantmod

  20. object Rcmod extends TypeMatch

    Extractor for relative clause modifier

  21. object Which extends TypeWordMatch

    Extractor for "which"