Learn R Programming

poldis (version 0.1.2)

annotate_text: Annotate text with NLP

Description

This function relies on `{spacyr}` NLP parsing to annotate texts.

Usage

annotate_text(v, level = "words")

Value

A data frame with syntax information by words or sentences in text.

Arguments

v

Text vector

level

At which level would you like to parse the text? Options include "words" or "sentences". Defaults to "words".

Examples

Run this code
#annotate_text(US_News_Conferences_1960_1980[1:2, 3])
#annotate_text(US_News_Conferences_1960_1980[1:2, 3], level = "sentence")

Run the code above in your browser using DataLab