mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 01:11:37 +00:00
add py.typed
This commit is contained in:
parent
ed7dccbf8b
commit
981fab53aa
@ -24,6 +24,7 @@ DIGIT_RE = regex.compile(r"\d")
|
||||
MULTI_DIGIT_RE = regex.compile(r"\d[\d.,]+")
|
||||
PURE_DIGIT_RE = regex.compile(r"\d+")
|
||||
|
||||
|
||||
def benford_freq(text: str) -> float:
|
||||
"""
|
||||
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)
|
||||
|
||||
|
||||
def preprocess_text(text: str, language: Language) -> str:
|
||||
"""
|
||||
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