updates
This commit is contained in:
27
Backend/venv/lib/python3.12/site-packages/nltk/stem/api.py
Normal file
27
Backend/venv/lib/python3.12/site-packages/nltk/stem/api.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Natural Language Toolkit: Stemmer Interface
|
||||
#
|
||||
# Copyright (C) 2001-2025 NLTK Project
|
||||
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
|
||||
# Edward Loper <edloper@gmail.com>
|
||||
# Steven Bird <stevenbird1@gmail.com>
|
||||
# URL: <https://www.nltk.org/>
|
||||
# For license information, see LICENSE.TXT
|
||||
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
||||
class StemmerI(metaclass=ABCMeta):
|
||||
"""
|
||||
A processing interface for removing morphological affixes from
|
||||
words. This process is known as stemming.
|
||||
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def stem(self, token):
|
||||
"""
|
||||
Strip affixes from the token and return the stem.
|
||||
|
||||
:param token: The token that should be stemmed.
|
||||
:type token: str
|
||||
"""
|
||||
Reference in New Issue
Block a user