Comments (1)
Thank you for your contribution.
my_pattern = r"(([-!#-'*+/-9=?A-Z^-~]+(\.[-!#-'*+/-9=?A-Z^-~]+)*|\"([]!#-[^-~ \t]|(\\[\t -~]))+\")@([-!#-'*+/-9=?A-Z^-~]+(\.[-!#-'*+/-9=?A-Z^-~]+)*|\[[\t -Z^-~]*]))"
I will include your regex into my backup.
For your example, I have tackled the bug and pushed to the latest commit. The reason is when I wrote the regex, I add #
in the begining and ending place of the given text. #
is not suitable because it is also approved in the email regex.
Besides, my regex of email can not cover all kinds of cases such as Chinese characters, which are also legal for email regex actually. If you still find some other exceptions, feel free to raise an issue.
from jionlp.
Related Issues (20)
- [BUG] extract_phone_number AttributeError HOT 1
- [功能请求]增加节假日假期时间 HOT 2
- [BUG]数字实体('二十一\三十一\二十七点三')被当成时间实体被抽取了 HOT 1
- [BUG] extract_time小数实体被错误抽取
- 模型实现语义识别 HOT 1
- [BUG]wsgi多进程启动时同时创建日志文件夹出错
- 每次返回都会有注释,能去除吗 HOT 1
- [技术咨询]地址解析慢,耗时3s左右,而官网响应的很快:http://www.jionlp.com/jionlp_online/parse_location HOT 1
- [BUG] 未来和过去时间段抽取范围不正确 HOT 2
- [功能请求]近30日8点,可以解析成近30日或者近30日每天的8点吗 HOT 3
- [BUG]上一季度解析出错
- [BUG] 提取时间实体‘晚上十一点钟’,会定位到日期的‘2023-10-01’,正确的应该是今天的日期加十一点钟?
- [功能请求] 请问可否增加其他语言的sdk HOT 3
- 如何不打印报错信息 HOT 2
- [功能请求]能否分包安装?包体积越来越大了,有时候只要其中一个功能 HOT 1
- [BUG] import jionlp 时候会默认创建/.jionlp_logs文件夹,报permission denied HOT 2
- [BUG]最近一个月”,会只识别近一个月,落下了“最”这个字
- [BUG] HOT 1
- [技术咨询] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jionlp.