object NlpProse
Stanford dependency trees and associated methods
- Alphabetic
- By Inheritance
- NlpProse
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class DepRel(gov: Token, dep: Token, deptype: String) extends Product with Serializable
Stanford dependency relation
- trait ParseData extends AnyRef
The trait for all data to be parsed to mathematics
- class ProseExtractor[A] extends AnyRef
Generic Extractor from ProseTree
- case class ProseTree(root: Token, tree: List[DepRel]) extends ParseData with Product with Serializable
Stanford Dependency tree
- case class SplitTree(edge: DepRel, subtree: ProseTree, pruned: ProseTree) extends Product with Serializable
- case class Token(word: String, idx: Int) extends Product with Serializable
Tokens
- class TypeListMatch extends AnyRef
- class TypeMatch extends AnyRef
Extractor matching Dependency type
- class TypeWordMatch extends AnyRef
Extractor matching Dependency type and Word of Dependent Token
Value Members
- def findroot(t: List[DepRel]): Token
Returns root of dependency tree
- def mweFold(t: ProseTree): ProseTree
returns new tree folding together multi-word expressions
- def mweMerge(t: ProseTree, d: DepRel): DepRel
returns Dependency Relation obtained by merging in multi-word expressions
- def mweTail(t: ProseTree, node: Token): Token
Find the string of multi-word expressions starting at a token
- object Advcl extends TypeMatch
- object Argument extends TypeListMatch
Fallback for all arguments
- object Ccomp extends TypeMatch
Extractor for Clausal complement
- object Conj
- object Cop extends ProseExtractor[(ProseTree, ProseTree)]
Extractor for "cop" identifying the subject
- object CopRel extends TypeMatch
Extractor for "cop" relation
- object Gt extends TypeWordMatch
Extractor for >
- object IfMark extends TypeWordMatch
- object Lt extends TypeWordMatch
Extractor for <
- object Modifier extends TypeListMatch
Fallback for all modifiers
- object Nsubj extends TypeMatch
Extractor for nsubj
- object Parataxis extends TypeMatch
- object Prep
- object ProseTree extends Serializable
- object QuantMod extends TypeMatch
Extractor for quantmod
- object Rcmod extends TypeMatch
Extractor for relative clause modifier
- object Which extends TypeWordMatch
Extractor for "which"