Skip to content

Commit

Permalink
Extend to stanza v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd committed May 27, 2022
1 parent 7a9faac commit 5895c99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 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 5895c99

Please sign in to comment.