Skip to content

Commit 2c93a1d

Browse files
committed
added nother header level readme
1 parent 2f311ff commit 2c93a1d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,17 @@ data(presidential_debates_2012)
7575

7676
Before moving into the meat these two examples let's highlight the difference between stemming and lemmatizing.
7777

78+
### "Drive" Stemming vs. Lemmatizing
79+
7880
```{r}
7981
dw <- c('driver', 'drive', 'drove', 'driven', 'drives', 'driving')
8082
8183
stem_words(dw)
8284
lemmatize_words(dw)
8385
```
8486

87+
### "Be" Stemming vs. Lemmatizing
88+
8589
```{r}
8690
bw <- c('are', 'am', 'being', 'been', 'be')
8791

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Table of Contents
2525
- [Examples](#examples)
2626
- [Load the Tools/Data](#load-the-toolsdata)
2727
- [Stemming Versus Lemmatizing](#stemming-versus-lemmatizing)
28+
- ["Drive" Stemming vs. Lemmatizing](#drive-stemming-vs-lemmatizing)
29+
- ["Be" Stemming vs. Lemmatizing](#be-stemming-vs-lemmatizing)
2830
- [Stemming](#stemming)
2931
- [Lemmatizing](#lemmatizing)
3032
- [Combine With Other Text Tools](#combine-with-other-text-tools)
@@ -120,6 +122,8 @@ Stemming Versus Lemmatizing
120122
Before moving into the meat these two examples let's highlight the
121123
difference between stemming and lemmatizing.
122124

125+
### "Drive" Stemming vs. Lemmatizing
126+
123127
dw <- c('driver', 'drive', 'drove', 'driven', 'drives', 'driving')
124128

125129
stem_words(dw)
@@ -130,6 +134,8 @@ difference between stemming and lemmatizing.
130134

131135
## [1] "driver" "drive" "drive" "drive" "drive" "drive"
132136

137+
### "Be" Stemming vs. Lemmatizing
138+
133139
bw <- c('are', 'am', 'being', 'been', 'be')
134140

135141
stem_words(bw)
@@ -255,9 +261,9 @@ It's pretty fast too. Observe:
255261

256262
(toc <- Sys.time() - tic)
257263

258-
## Time difference of 0.09106207 secs
264+
## Time difference of 0.09608579 secs
259265

260-
That's 2,912 rows of text, or 42,708 words, in 0.09 seconds.
266+
That's 2,912 rows of text, or 42,708 words, in 0.1 seconds.
261267

262268
Combine With Other Text Tools
263269
-----------------------------

0 commit comments

Comments
 (0)