mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-22 21:15:10 +00:00
create stop words class
This commit is contained in:
parent
2f51716388
commit
1ac4b44ee4
@ -65,4 +65,12 @@ class InvalidArgumentException extends \Exception
|
|||||||
{
|
{
|
||||||
return new self('Invalid clusters number');
|
return new self('Invalid clusters number');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return InvalidArgumentException
|
||||||
|
*/
|
||||||
|
public static function invalidStopWordsLanguage(string $language)
|
||||||
|
{
|
||||||
|
return new self(sprintf('Can\'t find %s language for StopWords', $language));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user