Package 'NLP' - R project

10 downloads 261 Views 174KB Size Report
Package 'NLP'. January 25, 2014. Version 0.1-1. Title Natural Language Processing Infrastructure. Description Basic classes and methods for Natural Language ...
Package ‘NLP’ August 15, 2017 Version 0.1-11 Title Natural Language Processing Infrastructure Description Basic classes and methods for Natural Language Processing. License GPL-3 Imports utils Depends R (>= 3.2.0) NeedsCompilation no Author Kurt Hornik [aut, cre] Maintainer Kurt Hornik Repository CRAN Date/Publication 2017-08-15 09:13:23 UTC

R topics documented: annotate . . . . . . . . . . . . AnnotatedPlainTextDocument Annotation . . . . . . . . . . annotations_in_spans . . . . . Annotator . . . . . . . . . . . annotators . . . . . . . . . . . CoNLLTextDocument . . . . . CoNLLUTextDocument . . . datetime . . . . . . . . . . . . generics . . . . . . . . . . . . language . . . . . . . . . . . . ngrams . . . . . . . . . . . . . Span . . . . . . . . . . . . . . String . . . . . . . . . . . . . TaggedTextDocument . . . . . Tagged_Token . . . . . . . . . tagsets . . . . . . . . . . . . . TextDocument . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . 1

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

2 3 5 8 9 10 13 15 16 17 18 19 20 21 22 23 24 25

2

annotate Tokenizer . . . . . tokenizers . . . . . Tree . . . . . . . . utils . . . . . . . . viewers . . . . . . WordListDocument

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

Index

annotate

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

26 28 29 31 31 33 34

Annotate text strings

Description Compute annotations by iteratively calling the given annotators with the given text and current annotations, and merging the newly computed annotations with the current ones. Usage annotate(s, f, a = Annotation()) Arguments s

a String object, or something coercible to this using as.String (e.g., a character string with appropriate encoding information)

f

an Annotator or Annotator_Pipeline object, or something coercible to the latter via as.Annotator_Pipeline() (such as a list of annotator objects).

a

an Annotation object giving the annotations to start with.

Value An annotation object containing the iteratively computed and merged annotations. Examples ## A simple text. s