-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Update to v3.3.2 #51
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- update to v3.3.1
update spaCy up to `3.0.6`
* update spaCy up to `3.0.8`; update spaCy up to `3.0.8`; * Fix maximum Text of length of nlp Fix Text of length nlp exceeds maximum of 1000000. Set nlp up to `NLP_EN.max_length = 2000000`
fix `ImportError: cannot import name 'escape' from 'jinja2`: Jinja is a dependency of Flask and Flask V1.X.X uses the escape module from Jinja, however recently support for the escape module was dropped in newer versions of Jinja. To fix this issue, simply update to the newer version of Flask V2.X.X in your requirements.txt where Flask no longer uses the escape module from Jinja. Flask==2.1.2
revert spacy to 3.0.8
update spaCy up to `3.1.6`
Set Flask to 2.0.3
Set Flask==1.1.2
Set jinja2<3.1.0
Set itsdangerous==2.0.1
Set Werkzeug < 2.0.0
Set spacy to 3.0.8
Set spacy to 3.0.6
Set keepalive_timeout 1050
Set NLP_EN.max_length = 5000000
Set keepalive_timeout 1550
add big test file for en
Set keepalive_timeout 1050
Update to v3.3.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v3.3.2, 2021-05-01
🔴 Виправлення помилок
ENG🇬🇧
виправлено помилку
nlp.max_length limit exceeded
:Text of length 1195652 exceeds maximum of 1000000. The parser and NER models require roughly 1GB of temporary memory per 100,000 characters in the input. This means long texts may cause memory allocation errors. If you're not using the parser or NER, it's probably safe to increase the nlp.max_length limit. The limit is in number of characters, so you can check whether your inputs are too long by checking len(text).
Встановлено ліміт
NLP_EN.max_length = 5000000
;виправлено помилку
ImportError: cannot import name 'escape' from 'jinja2'
:This happens because Jinja has removed those functions in a recent version — 3.1.0 — released on March 24th, 2022.
You have two options form here:
The first thing you should consider is to upgrade the said dependence(s). If this is not possible, what you can do, from here is to downgrade your Jinja version to a version that would still include
escape
, for example, adding it explicitly in your requirements.txt:So, you should use
instead of
При використанні
Flask==1.1.2
треба зафікмувати наступні залежності:jinja2<3.1.0
;itsdangerous==2.0.1
,Werkzeug<2.0.0
;дрібні виправлення коду.
ENG🇬🇧
3.0.6
;keepalive_timeout 1050
для nginx;