diff --git a/nlpurify/feature/selection/nltk.py b/nlpurify/feature/selection/nltk.py index 2c100a5..c27dbd2 100644 --- a/nlpurify/feature/selection/nltk.py +++ b/nlpurify/feature/selection/nltk.py @@ -145,6 +145,9 @@ def tokenize_text(text : str, regexp : bool = False, vanilla : bool = False, **k :raises ValueError: The error is raised when both the attribute ``vanilla`` and ``regexp`` is set to True. + :raises ImportError: Error is raised when one or more nltk corpus + is not available in the system. + **Return Type** :rtype: list[str] @@ -281,6 +284,9 @@ def remove_stopwords(text : str, language : str = "english", rtype : object = st not in {str, list} values. Make sure the data type is an type instance and is not passed as a string value. + :raises ImportError: Error is raised when one or more nltk corpus + is not available in the system. + **Return Type** :rtype: str | list