Learn R Programming

tm (version 0.5-3)

stemCompletion: Complete Stems

Description

Heuristically complete stemmed words.

Usage

stemCompletion(x, words, type = c("prevalent", "first", "longest", "none", "random", "shortest"))

Arguments

x
A Corpus to be searched for possible completions.
words
A character vector of stems to be completed.
type
A character naming the heuristics to be used: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

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