add py.typed

This commit is contained in:
Elia Robyn Lake 2022-03-10 19:16:38 -05:00
parent ed7dccbf8b
commit 981fab53aa
3 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ DIGIT_RE = regex.compile(r"\d")
MULTI_DIGIT_RE = regex.compile(r"\d[\d.,]+") MULTI_DIGIT_RE = regex.compile(r"\d[\d.,]+")
PURE_DIGIT_RE = regex.compile(r"\d+") PURE_DIGIT_RE = regex.compile(r"\d+")
def benford_freq(text: str) -> float: def benford_freq(text: str) -> float:
""" """
Estimate the frequency of a digit sequence according to Benford's law. Estimate the frequency of a digit sequence according to Benford's law.

View File

@ -7,6 +7,7 @@ from langcodes import Language
MARK_RE = regex.compile(r"[\p{Mn}\N{ARABIC TATWEEL}]", regex.V1) MARK_RE = regex.compile(r"[\p{Mn}\N{ARABIC TATWEEL}]", regex.V1)
def preprocess_text(text: str, language: Language) -> str: def preprocess_text(text: str, language: Language) -> str:
""" """
This function applies pre-processing steps that convert forms of words This function applies pre-processing steps that convert forms of words

0
wordfreq/py.typed Normal file
View File