mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 01:41:39 +00:00
add py.typed
This commit is contained in:
parent
2563eb8d72
commit
2738737293
@ -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.
|
||||||
|
@ -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
0
wordfreq/py.typed
Normal file
Loading…
Reference in New Issue
Block a user