You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language.
10
+
All the documentation for this project can be found in the book and wiki.
11
+
12
+
PHP Text Analysis Book & Wiki
13
+
=============
14
+
15
+
A book is in the works and your contributions are needed. You can find the book
16
+
at https://github.com/yooper/php-text-analysis-book
17
+
18
+
19
+
Also, documentation for the library resides in the wiki, too.
20
+
https://github.com/yooper/php-text-analysis/wiki
9
21
10
-
PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language. All the documentation for this project can be found in the wiki.
11
22
12
23
Installation Instructions
13
24
=============
@@ -16,9 +27,6 @@ Add PHP Text Analysis to your project
16
27
```
17
28
composer require yooper/php-text-analysis
18
29
```
19
-
Documentation for the library resides in the wiki.
20
-
https://github.com/yooper/php-text-analysis/wiki
21
-
22
30
23
31
### Tokenization
24
32
```php
@@ -63,9 +71,20 @@ Customize the ngrams
63
71
$trigrams = ngrams($tokens,3, '|');
64
72
```
65
73
66
-
Dictionary Installation
67
-
=============
68
-
69
-
To do
70
-
74
+
### Stemming
75
+
By default stem method uses the Porter Stemmer.
76
+
```php
77
+
$stemmedTokens = stem($tokens);
78
+
```
79
+
You can customize which type of stemmer to use by passing in the name of the stemmer class name
0 commit comments