FastNLPProcessor

class FastNLPProcessor(tokenizerPostProcessor: Option[TokenizerStep], internStrings: Boolean, withChunks: Boolean, withRelationExtraction: Boolean, withDiscourse: Int) extends ShallowNLPProcessor with OpenIEAnnotator

Fast NLP tools Extends ShallowNLP with a dependency parser based on the Stanford NN dependency parser This means that constituent trees and coreference (which depends on constituent syntax) are not available The default setting is to use the Stanford parser with "basic" dependencies User: mihais Date: 1/4/14 Last Modified: Update for Scala 2.12: java converters.

Companion:
object
trait Processor
class Object
trait Matchable
class Any

Value members

Constructors

def this(internStrings: Boolean, withChunks: Boolean, withRelationExtraction: Boolean, withDiscourse: Int)

Concrete methods

override def discourse(doc: Document): Unit
Definition Classes
ShallowNLPProcessor -> Processor
override def parse(doc: Document): Unit
Definition Classes
ShallowNLPProcessor -> Processor
override def srl(doc: Document): Unit

Semantic role labeling

Semantic role labeling

Definition Classes
ShallowNLPProcessor -> Processor

Inherited methods

def annotate(doc: Document): Document
Inherited from:
ShallowNLPProcessor
def annotate(text: String, keepText: Boolean): Document

Annotate the given text string, specify whether to retain the text in the resultant Document.

Annotate the given text string, specify whether to retain the text in the resultant Document.

Inherited from:
Processor
def annotateFromSentences(sentences: Iterable[String], keepText: Boolean): Document

Annotate the given sentences, specify whether to retain the text in the resultant Document.

Annotate the given sentences, specify whether to retain the text in the resultant Document.

Inherited from:
Processor
def annotateFromTokens(sentences: Iterable[Iterable[String]], keepText: Boolean): Document

Annotate the given tokens, specify whether to retain the text in the resultant Document.

Annotate the given tokens, specify whether to retain the text in the resultant Document.

Inherited from:
Processor
def basicSanityCheck(doc: Document, checkAnnotation: Boolean): Option[Annotation]
Inherited from:
ShallowNLPProcessor
def chunking(doc: Document): Unit
Inherited from:
ShallowNLPProcessor
def in(s: String): String
Inherited from:
ShallowNLPProcessor
def lemmatize(doc: Document): Unit
Inherited from:
ShallowNLPProcessor
def mkCombinedDocument(texts: IndexedSeq[String], trailers: IndexedSeq[String], keepText: Boolean): Document
Inherited from:
Processor
def mkDocument(text: String, keepText: Boolean): Document
Inherited from:
ShallowNLPProcessor
def mkDocumentFromSentences(sentences: Iterable[String], keepText: Boolean, charactersBetweenSentences: Int): Document
Inherited from:
ShallowNLPProcessor
def mkDocumentFromTokens(sentences: Iterable[Iterable[String]], keepText: Boolean, charactersBetweenSentences: Int, charactersBetweenTokens: Int): Document
Inherited from:
ShallowNLPProcessor
def mkLemmatizer: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
def mkNer: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
def mkOpenIE: StanfordCoreNLP
Inherited from:
OpenIEAnnotator
def mkPosTagger: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
def namedEntitySanityCheck(doc: Document): Option[Annotation]
Inherited from:
ShallowNLPProcessor
def newStanfordCoreNLP(props: Properties, enforceRequirements: Boolean): StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
def postprocessTags(annotation: Annotation): Unit

Hook to allow postprocessing of CoreNLP POS tagging in place, overwriting original POS tags This is useful for domain-specific corrections

Hook to allow postprocessing of CoreNLP POS tagging in place, overwriting original POS tags This is useful for domain-specific corrections

Value parameters:
annotation

The CoreNLP annotation

Inherited from:
ShallowNLPProcessor
def recognizeNamedEntities(doc: Document): Unit
Inherited from:
ShallowNLPProcessor
override def relationExtraction(doc: Document): Unit
Definition Classes
Inherited from:
OpenIEAnnotator
def relationExtractionSanityCheck(doc: Document): Option[Annotation]
Inherited from:
OpenIEAnnotator
def resolveCoreference(doc: Document): Unit
Inherited from:
ShallowNLPProcessor
def tagPartsOfSpeech(doc: Document): Unit
Inherited from:
ShallowNLPProcessor

Concrete fields

lazy val stanfordDepParser: DependencyParser

Stanford's NN dependency parser

Stanford's NN dependency parser

Inherited fields

val LEFT_PARENS: Regex
Inherited from:
ShallowNLPProcessor
val RIGHT_PARENS: Regex
Inherited from:
ShallowNLPProcessor
Inherited from:
ShallowNLPProcessor
lazy val lemmatizer: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
lazy val ner: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
lazy val openIE: StanfordCoreNLP
Inherited from:
OpenIEAnnotator
lazy val posTagger: StanfordCoreNLP
Inherited from:
ShallowNLPProcessor
lazy val tokenizer: Tokenizer
Inherited from:
ShallowNLPProcessor