diff --git a/examples/pipeline/custom_attr_methods.py b/examples/pipeline/custom_attr_methods.py index 741541b06..18d6b482a 100644 --- a/examples/pipeline/custom_attr_methods.py +++ b/examples/pipeline/custom_attr_methods.py @@ -10,7 +10,7 @@ they're called on is passed in as the first argument. Developed for: spaCy 2.0.0a17 Last updated for: spaCy 2.0.0a18 """ -from __future__ import unicode_literals +from __future__ import unicode_literals, print_function import plac from spacy.lang.en import English diff --git a/examples/pipeline/custom_component_countries_api.py b/examples/pipeline/custom_component_countries_api.py index 38eec7384..e7371e205 100644 --- a/examples/pipeline/custom_component_countries_api.py +++ b/examples/pipeline/custom_component_countries_api.py @@ -11,7 +11,7 @@ coordinates. Can be extended with more details from the API. Developed for: spaCy 2.0.0a17 Last updated for: spaCy 2.0.0a18 """ -from __future__ import unicode_literals +from __future__ import unicode_literals, print_function import requests import plac diff --git a/examples/pipeline/custom_component_entities.py b/examples/pipeline/custom_component_entities.py index 050a89905..6b78744b7 100644 --- a/examples/pipeline/custom_component_entities.py +++ b/examples/pipeline/custom_component_entities.py @@ -11,7 +11,7 @@ respectively. Developed for: spaCy 2.0.0a17 Last updated for: spaCy 2.0.0a18 """ -from __future__ import unicode_literals +from __future__ import unicode_literals, print_function import plac from spacy.lang.en import English diff --git a/examples/training/train_parser.py b/examples/training/train_parser.py index 30a6f6095..a23d73ec7 100644 --- a/examples/training/train_parser.py +++ b/examples/training/train_parser.py @@ -90,7 +90,7 @@ def main(model=None, output_dir=None, n_iter=1000): nlp.to_disk(output_dir) print("Saved model to", output_dir) - # test the save model + # test the saved model print("Loading from", output_dir) nlp2 = spacy.load(output_dir) doc = nlp2(test_text)