Morpheme Tokenization

Tokenize text into morphemes. The morphemepiece algorithm uses a lookup table to determine the morpheme breakdown of words, and falls back on a modified wordpiece tokenization algorithm for words not found in the lookup table.


morphemepiece

The goal of morphemepiece is to allow you to tokenize words into morphemes (the smallest unit of meaning).

Installation

You can install the released version of morphemepiece from CRAN with:

install.packages("morphemepiece")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("macmillancontentscience/morphemepiece")

Code of Conduct

Please note that the morphemepiece project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Disclaimer

This is not an officially supported Macmillan Learning product.

Contact information

Questions or comments should be directed to Jonathan Bratt ([email protected]) and Jon Harmon ([email protected]).

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("morphemepiece")

1.2.3 by Jonathan Bratt, 5 years ago


https://github.com/macmillancontentscience/morphemepiece


Report a bug at https://github.com/macmillancontentscience/morphemepiece/issues


Browse source code at https://github.com/cran/morphemepiece


Authors: Jonathan Bratt [aut, cre] , Jon Harmon [aut] , Bedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning [cph]


Documentation:   PDF Manual  


Apache License (>= 2) license


Imports dlr, fastmatch, magrittr, memoise, morphemepiece.data, piecemaker, purrr, readr, rlang, stringr

Suggests dplyr, fs, ggplot2, here, knitr, remotes, rmarkdown, testthat, utils


See at CRAN