part_of_speech: Part-of-peech tagging and chunking on text

Description Usage Arguments Value Note References Examples

View source: R/pos.r

Description

Not all languages are supported for each output format. See the official documentation for more information.

Usage

1

Arguments

text

one element character vector containing the text to analyze (part of speech). Must be <= 2,000 characters.

language

the language text is in. Value should be NULL (which will cause the API to pick the appropriate stemmer) or one of the supported languages here: http://text-processing.com/docs/tag.html.

output

The tagged (and chunked) text can be returned in one of the following output formats: "tagged", "sexpr" or "iob". See the official documentation for more information. Use NULL for default API behavior.

Value

list with parsed text

Note

The public API is for non-commercial purposes, and each method is throttled to 1,000 calls per day per IP

References

http://text-processing.com/docs/tag.html

Examples

1
2
3
4
5
6
part_of_speech("hello world")

part_of_speech("hello world", output="iob")

# named entity recoginition
part_of_speech("Maine is nice")

hrbrmstr/sentimental documentation built on May 17, 2019, 5:13 p.m.