Comments (10)
Thank you for reporting the bug! Changed the code accordingly to fit click 8.0 name change in the call back.
pip install -U sacremoses>=0.50
Should work with latest click
now.
from sacremoses.
Just noting that wandb
avoids click 8.0.0
which makes it incompat: https://github.com/wandb/client/blob/master/requirements.txt#L1
from sacremoses.
can we do <8.1?
from sacremoses.
Ah tricky let me see if I can work out something.
from sacremoses.
I've fixed the click dependency to 7.1.2. last version before 8.x (for now) but maybe if this click dependency gets a little too pesky and I'll replace it in the long run.
pip install -U sacremoses>=0.51
Hope it works for everyone now.
from sacremoses.
i mean, i think the issue here is that when the code was originally resultcallback
, click
wasn't restricted to <8.0.0
- regardless of any changes that are made now, the old version will still have this issue
i think it's perfectly fine to set click>=8.0.0
and use result_callback
, and anyone experiencing this issue needs to either bump sacremoses
or restrict click
themselves
up to you in the end, though
from sacremoses.
In the long run, seems like getting rid of click is the way to go.
Meanwhile I think there's no need to fixed click version to anything. It's a simple name-change difference of the callback function that makes click non back-compatible.
Let me think of something to monkey-patch just that callback function names.
from sacremoses.
I've uploaded a version that supports both click versions 7.x and 8.x.
pip install -U sacremoses>=0.53
IMHO, it's a nasty fix so I'll think hard on how to remove click.
from sacremoses.
Let me know if anyone using either version of clicks fails on your end.
from sacremoses.
Looks good, thanks!
from sacremoses.
Related Issues (20)
- error: loading model for detruecaser
- Bug: normalize prints extra newline HOT 1
- Is this normal to tokenize "His number is No.123." to ['His', 'number', 'is', 'No.123.']. Should it be ['His', 'number', 'is', 'No.123', '.']?
- bug report
- Truecaser seems do not process sentences beginning with quotation marks
- update release on github
- No detokenize_penn?
- can't tokenise the period properly
- deep detokenizer
- Chinese full stop “。” can't be split. HOT 1
- Trying to get in touch regarding a security issue HOT 2
- Is there a way to use sacremoses in java? HOT 1
- Cache downloaded tokenizer files HOT 1
- Which of the 100 languages used in mBERT are not supported by this tokenizer? HOT 1
- distutils is deprecated in Python 3.10 HOT 1
- New release? HOT 4
- Is this package multi-threaded? HOT 1
- [Question] Why is <unk> token tokenized into 3 items? HOT 1
- Quiet flag has no effect on the detokenizer 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 sacremoses.