Skip to content

Commit f55b876

Browse files
authored
Merge pull request explosion#10387 from adrianeboyd/chore/v3.0.8
Set version to v3.0.8
2 parents f71de10 + ebcc7d8 commit f55b876

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

spacy/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fmt: off
22
__title__ = "spacy"
3-
__version__ = "3.0.7"
3+
__version__ = "3.0.8"
44
__download_url__ = "https://github.com/explosion/spacy-models/releases/download"
55
__compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"
66
__projects__ = "https://github.com/explosion/projects"

spacy/tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44

55
def pytest_addoption(parser):
6-
parser.addoption("--slow", action="store_true", help="include slow tests")
6+
try:
7+
parser.addoption("--slow", action="store_true", help="include slow tests")
8+
parser.addoption("--issue", action="store", help="test specific issues")
9+
# Options are already added, e.g. if conftest is copied in a build pipeline
10+
# and runs twice
11+
except ValueError:
12+
pass
713

814

915
def pytest_runtest_setup(item):

spacy/tests/training/test_readers.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Dict, Iterable, Callable
22
import pytest
3-
from thinc.api import Config
3+
from thinc.api import Config, fix_random_seed
44
from spacy import Language
55
from spacy.util import load_model_from_config, registry, resolve_dot_names
66
from spacy.schemas import ConfigSchemaTraining
@@ -64,8 +64,8 @@ def reader(nlp: Language):
6464
@pytest.mark.parametrize(
6565
"reader,additional_config",
6666
[
67-
("ml_datasets.imdb_sentiment.v1", {"train_limit": 10, "dev_limit": 2}),
68-
("ml_datasets.dbpedia.v1", {"train_limit": 10, "dev_limit": 2}),
67+
("ml_datasets.imdb_sentiment.v1", {"train_limit": 10, "dev_limit": 10}),
68+
("ml_datasets.dbpedia.v1", {"train_limit": 10, "dev_limit": 10}),
6969
("ml_datasets.cmu_movies.v1", {"limit": 10, "freq_cutoff": 200, "split": 0.8}),
7070
],
7171
)
@@ -82,17 +82,18 @@ def test_cat_readers(reader, additional_config):
8282
8383
[nlp]
8484
lang = "en"
85-
pipeline = ["tok2vec", "textcat"]
85+
pipeline = ["tok2vec", "textcat_multilabel"]
8686
8787
[components]
8888
8989
[components.tok2vec]
9090
factory = "tok2vec"
9191
92-
[components.textcat]
93-
factory = "textcat"
92+
[components.textcat_multilabel]
93+
factory = "textcat_multilabel"
9494
"""
9595
config = Config().from_str(nlp_config_string)
96+
fix_random_seed(config["training"]["seed"])
9697
config["corpora"]["@readers"] = reader
9798
config["corpora"].update(additional_config)
9899
nlp = load_model_from_config(config, auto_fill=True)

0 commit comments

Comments
 (0)