HF中国镜像站
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
gpt-neo-1.3B-persian
like
0
Follow
Flax Community
345
Text Generation
Transformers
gpt_neo
Inference Endpoints
Model card
Files
Files and versions
Community
Train
Deploy
Use this model
69dd1b0
gpt-neo-1.3B-persian
/
src
/
regexes
/
number.py
m3hrdadfi
Initialize
69dd1b0
over 3 years ago
raw
Copy download link
history
blame
Safe
172 Bytes
import
re
NUMBERS_REGEX = re.
compile
(
r"(?:^|(?<=[^\w,.]))[+–-]?(([1-9]\d{0,2}(,\d{3})+(\.\d*)?)|([1-9]\d{0,2}([ .]\d{3})+(,\d*)?)|(\d*?[.,]\d+)|\d+)(?:$|(?=\b))"
)