Learn R Programming

tm (version 0.3-1)

stemCompletion: Complete Stems

Description

Heuristically complete stemmed words.

Usage

stemCompletion(object, words)

Arguments

object
a Corpus to be searched for possible completions.
words
a character vector of stems to be completed.

Value

  • A character vector with completed words.

Examples

Run this code
data("crude")
stemCompletion(crude, c("compan", "entit", "suppl"))

Run the code above in your browser using DataLab