Skip to content

Commit

Permalink
Fix Significant-Gravitas#2654 spacy language model installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Apr 20, 2023
1 parent 14d3eca commit c145d95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jsonschema
tweepy
click
spacy>=3.0.0,<4.0.0
en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.4.0/en_core_web_sm-3.4.0-py3-none-any.whl
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl

##Dev
coverage
Expand Down
3 changes: 2 additions & 1 deletion scripts/check_requirements.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import sys

import pkg_resources
Expand All @@ -16,7 +17,7 @@ def main():
for package in required_packages:
if not package: # Skip empty lines
continue
package_name = package.strip().split("==")[0]
package_name = re.split("[<>=@ ]+", package.strip())[0]
if package_name.lower() not in installed_packages:
missing_packages.append(package_name)

Expand Down

0 comments on commit c145d95

Please sign in to comment.