1 | <?php |
||
12 | class LanguageProcessingUtility extends AbstractUtility |
||
13 | { |
||
14 | /** |
||
15 | * @param $text |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | 2 | public function stem($text) |
|
27 | |||
28 | /** |
||
29 | * @param $text |
||
30 | * @param string $language |
||
31 | * |
||
32 | * @throws \Exception |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public function removeStopWords($text, $language = 'en') |
|
51 | |||
52 | /** |
||
53 | * @param $text |
||
54 | * |
||
55 | * @throws \Exception |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 1 | public function removePunctuations($text) |
|
65 | } |
||
66 |