remove stop words
v0.3.0
文字列からremove stop words 。現在はフランス語、スペイン語、英語で動作します。あなたの言語を含めたい場合は、お気軽にプル リクエストを送信してください。
composer require rap2hpoutre/remove-stop-words
文字列を指定してremove_stop_words
関数を呼び出すだけです。
use function Rap2hpoutre RemoveStopWords remove_stop_words ;
echo remove_stop_words ( ' The quick brown fox jumps over the lazy dog ' );
// quick brown fox jumps lazy dog
2 番目の引数としてロケールを指定できます。
use function Rap2hpoutre RemoveStopWords remove_stop_words ;
echo remove_stop_words ( ' Portez ce vieux whisky au juge blond qui fume ' , ' fr ' );
// Portez vieux whisky juge blond fume