Skip to content

Commit

Permalink
Added stub file
Browse files Browse the repository at this point in the history
  • Loading branch information
shner-elmo committed Jun 30, 2024
1 parent ec146e3 commit f1aa76e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions flashtext2.pyi
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: ...

0 comments on commit f1aa76e

Please sign in to comment.