CoreNLPUtils

Utilities for manipulating CoreNLP data structures User: mihais Date: 2/25/15 Last Modified: Update for Scala 2.12: java converters.

class Object
trait Matchable
class Any

Value members

Concrete methods

def docToAnnotations(doc: Document): Seq[Annotation]

Create an Annotation from a Document

Create an Annotation from a Document

def parensToSymbols(words: List[CoreLabel]): List[CoreLabel]
def sentenceToAnnotation(s: Sentence): Annotation

Create an Annotation from a Sentence

Create an Annotation from a Sentence

def toDirectedGraph(sg: SemanticGraph, interning: String => String, preferredSize: Option[Int], debug: Boolean): DirectedGraph[String]
def toTree(stanfordTree: Tree, headFinder: SemanticHeadFinder, position: MutableNumber[Int]): Tree