Comments (3)
Unfortunately I'm not able to reproduce that error:
>>> from somajo import Tokenizer, SentenceSplitter
>>> tokenizer = Tokenizer(language="en")
>>> tokenizer.tokenize("Here's a simple example!:-)")
['Here', "'s", 'a', 'simple', 'example', '!', ':-)']
Which versions of SoMaJo and of the regex module are you using? For me everything works fine using SoMaJo 1.9.0 and regex 2.5.29 on either Python 3.5.2 or Python 3.7.3.
from somajo.
Hi,
The versions are as follows:
regex==2017.11.9
SoMaJo==1.9.0
Python 3.6.3
Could you tell me which regex package did you use?
Thanks for taking your time to look into this issue.
from somajo.
I used version 2019.4.14 of the regex module (which self-reports as 2.5.29):
>>> regex.__version__
'2.5.29'
But even with version 2017.11.9 (self-reported as 2.4.132) everything works as expected.
Does this minimal working example work for you? What does it output (including complete stack trace, if any)? For me it looks like this:
regex: 2.4.132
somajo: 1.9.0
python: 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609]
default encoding: utf-8
['Here', "'s", 'a', 'simple', 'example', '!', ':-)']
from somajo.
Related Issues (20)
- Failing unit test in 2.0.2 HOT 4
- Quotation Marks HOT 1
- Phonenumber and sad emoje HOT 1
- Tokenizer outputs single characters per line HOT 4
- Thread safety HOT 6
- Segmentation of sentences in lowercase HOT 2
- Apostrophe die Vokale ersetzen HOT 5
- How do I split sentences but not words? HOT 2
- False Positives with URLS HOT 2
- tokenize with continue multiple punctions HOT 1
- Tokenizer text recovery problem HOT 1
- Domain adaptation to law texts HOT 4
- publish on conda-forge HOT 2
- Document all possible values for `token_class`. HOT 6
- Dates at the end of sentences HOT 1
- Markdown link splitting bug. HOT 6
- Issue with Markdown style links. HOT 3
- Other issue with Markdown style links. HOT 1
- Other MD issue. HOT 2
- SRX for sentence_splitter HOT 1
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 somajo.