LexiconFeatures: Lexicon features

View source: R/lexicon.R

LexiconFeaturesR Documentation

Lexicon features

Description

Computes features for a given lexicon.

Usage

LexiconFeatures(tokens, lexicon, prefix = NULL)

Arguments

tokens

Token data.table containing ids for document (id), sentence (sid) and token (tid) and token word.

lexicon

Lexicon as a data.table with word and score columns.

prefix

Optional prefix to add in front of column names.

Value

A data.table with features computed for each document.

See Also

CleanNLPTokens


M3SOulu/TextFeatures documentation built on June 24, 2022, 4:56 p.m.