-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec146e3
commit f1aa76e
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
.. include:: ../flashtext2-1.0.0.dist-info/METADATA | ||
""" | ||
|
||
from typing import Optional, Iterable | ||
|
||
|
||
class KeywordProcessor: | ||
case_sensitive: bool | ||
def __init__(self, case_sensitive: bool) -> None: ... | ||
def __len__(self) -> int: ... | ||
def __repr__(self) -> str: ... | ||
def add_keyword(self, word: str, clean_word: Optional[str] = None) -> None: ... | ||
def add_keywords_from_iter(self, words: Iterable[str]) -> None: ... | ||
def add_keywords_with_clean_word_from_iter(self, words: Iterable[tuple[str, str]]) -> None: ... | ||
def extract_keywords(self, text: str) -> list[str]: ... | ||
def extract_keywords_with_span(self, text: str) -> list[tuple[str, int, int]]: ... | ||
def replace_keywords(self, text: str) -> str: ... |