wikimorphemes_lookup: Load the Current Lookup

View source: R/cache.R

wikimorphemes_lookupR Documentation

Load the Current Lookup

Description

During use, Wikimorphemes builds an in-memory lookup table of words and morphemes. This table is used by process_word, but it might also be useful for other uses.

Usage

wikimorphemes_lookup()

Value

A tibble with columns word, morphemes (a list column with a character vector of morphemes per word), and n_morphemes (an integer count of morphemes in the morphemes column). Note that words less than 4 characters are never broken into morphemes by this package so they do not appear in the lookup. If you do not have a lookup, this function will return NULL.

Examples

nrow(wikimorphemes_lookup())
head(wikimorphemes_lookup())

jonthegeek/wikimorphemes documentation built on Sept. 1, 2022, 10:32 p.m.