Skip to content

Commit

Permalink
Merge pull request #10387 from adrianeboyd/chore/v3.0.8
Browse files Browse the repository at this point in the history
Set version to v3.0.8
  • Loading branch information
adrianeboyd committed Feb 28, 2022
2 parents f71de10 + ebcc7d8 commit f55b876
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spacy/about.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fmt: off
__title__ = "spacy"
__version__ = "3.0.7"
__version__ = "3.0.8"
__download_url__ = "https://github.com/explosion/spacy-models/releases/download"
__compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"
__projects__ = "https://github.com/explosion/projects"
Expand Down
8 changes: 7 additions & 1 deletion spacy/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@


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


def pytest_runtest_setup(item):
Expand Down
13 changes: 7 additions & 6 deletions spacy/tests/training/test_readers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, Iterable, Callable
import pytest
from thinc.api import Config
from thinc.api import Config, fix_random_seed
from spacy import Language
from spacy.util import load_model_from_config, registry, resolve_dot_names
from spacy.schemas import ConfigSchemaTraining
Expand Down Expand Up @@ -64,8 +64,8 @@ def reader(nlp: Language):
@pytest.mark.parametrize(
"reader,additional_config",
[
("ml_datasets.imdb_sentiment.v1", {"train_limit": 10, "dev_limit": 2}),
("ml_datasets.dbpedia.v1", {"train_limit": 10, "dev_limit": 2}),
("ml_datasets.imdb_sentiment.v1", {"train_limit": 10, "dev_limit": 10}),
("ml_datasets.dbpedia.v1", {"train_limit": 10, "dev_limit": 10}),
("ml_datasets.cmu_movies.v1", {"limit": 10, "freq_cutoff": 200, "split": 0.8}),
],
)
Expand All @@ -82,17 +82,18 @@ def test_cat_readers(reader, additional_config):
[nlp]
lang = "en"
pipeline = ["tok2vec", "textcat"]
pipeline = ["tok2vec", "textcat_multilabel"]
[components]
[components.tok2vec]
factory = "tok2vec"
[components.textcat]
factory = "textcat"
[components.textcat_multilabel]
factory = "textcat_multilabel"
"""
config = Config().from_str(nlp_config_string)
fix_random_seed(config["training"]["seed"])
config["corpora"]["@readers"] = reader
config["corpora"].update(additional_config)
nlp = load_model_from_config(config, auto_fill=True)
Expand Down

0 comments on commit f55b876

Please sign in to comment.