forked from jonthegeek/morphemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
48 lines (34 loc) · 1.38 KB
/
README.Rmd
File metadata and controls
48 lines (34 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# morphemizer
<!-- badges: start -->
<!-- badges: end -->
The goal of morphemizer is to tokenize text into morphemes (the shortest word pieces that still bear meaning).
For example, "unaffable" should tokenize to `"un##", "affable"`, since "aff" does not have a meaning in modern English, while "inescapable" should tokenize to `"in##", "escape", "##able"`.
`"##"` characters are used to indicate breaks in words.
Prefixes are followed by "##" (as in `"in##"`), suffixes are preceded by "##" (as in `"##able"`), and breaks between roots are indicated by the special `"##"` token.
## Installation
You can install the released version of morphemizer from [CRAN](https://CRAN.R-project.org) with:
``` r
# No you can't.
# install.packages("morphemizer")
```
And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("jonthegeek/morphemizer")
```
## Disclaimer
This is not an officially supported Macmillan Learning product.
## Contact information
Questions or comments should be directed to Jonathan Bratt (jonathan.bratt@macmillan.com) and Jon Harmon (jonthegeek@gmail.com).