Skip to content

Commit

Permalink
Merge pull request #85 from adrianeboyd/chore/stanza-1.4.0
Browse files Browse the repository at this point in the history
Update for stanza v1.4.0
  • Loading branch information
adrianeboyd authored May 27, 2022
2 parents efc4bba + aa8d23c commit 7bff03f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
# imageName: 'vs2017-win2016'
# python.version: '3.6'

Python36Mac:
imageName: 'macos-10.15'
python.version: '3.6'
Python37Mac:
imageName: 'macos-latest'
python.version: '3.7'
maxParallel: 4
pool:
vmImage: $(imageName)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spacy>=3.0.0,<4.0.0
stanza>=1.2.0,<1.4.0
stanza>=1.2.0,<1.5.0
# Development dependencies
pytest>=5.2.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setup_package():
version=about["__version__"],
license=about["__license__"],
packages=find_packages(),
install_requires=["spacy>=3.0.0,<4.0.0", "stanza>=1.2.0,<1.4.0"],
install_requires=["spacy>=3.0.0,<4.0.0", "stanza>=1.2.0,<1.5.0"],
python_requires=">=3.6",
entry_points={
"spacy_tokenizers": [
Expand Down
2 changes: 1 addition & 1 deletion spacy_stanza/about.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "spacy-stanza"
__version__ = "1.0.1"
__version__ = "1.0.2"
__summary__ = "Use the latest Stanza (StanfordNLP) research models directly in spaCy"
__uri__ = "https://explosion.ai"
__author__ = "Explosion"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_spacy_stanza_english():

assert [t.tag_ for t in doc] == ["UH", "NN", ".", "DT", "VBZ", "DT", "NN", '.']
assert [str(t.morph) for t in doc] == ['', 'Number=Sing', '', 'Number=Sing|PronType=Dem', 'Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin', 'Definite=Ind|PronType=Art', 'Number=Sing', '']
assert [t.dep_ for t in doc] == ['discourse', 'root', 'punct', 'nsubj', 'cop', 'det', 'root', 'punct']
assert [t.dep_ for t in doc] == ['root', 'vocative', 'punct', 'nsubj', 'cop', 'det', 'root', 'punct']
assert [t.is_sent_start for t in doc] == [True, False, False, True, False, False, False, False]
assert any([t.is_stop for t in doc])
# fmt: on
Expand Down

0 comments on commit 7bff03f

Please sign in to comment.