tokenify: Function to token a string into its k components

Description Usage Arguments Value Examples

View source: R/klsh.R

Description

Function to token a string into its k components

Usage

1
tokenify(string, k)

Arguments

string

A string or record

k

A parameter k, which is the number of shingle, tokens, or grams to break the string into

Value

Computes the tokenized or grammed version of a string

Examples

1
2
tokenify("Alexander",2)
tokenify("Alexander Smith", 2)

klsh documentation built on Jan. 13, 2021, 8:05 p.m.