1d046b78b5429d48370461d277b51b682f0fe632,torchnlp/text_encoders/spacy_encoder.py,SpacyEncoder,__init__,#SpacyEncoder#,33

Before Change


            // Use the SpacyEncoder by downloading en_core_web_sm via:
            // `python -m spacy download en_core_web_sm`
            _MODEL = spacy.load("en_core_web_sm")
            tokenizer = English().Defaults.create_tokenizer(_MODEL)
        except ImportError:
            print("Please install Spacy: "
                  "`pip install spacy` `python -m spacy download en_core_web_sm`")

After Change



        // All languages supported by spaCy can be found here:
        //   https://spacy.io/models///available-models
        supported_languages = ["en", "de", "es", "pt", "fr", "it", "nl", "xx"]

        if language in supported_languages:
            // Load the spaCy language model if it has been installed
            try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 1d046b78b5429d48370461d277b51b682f0fe632
Time: 2018-04-24
Author: florian.joh.schaefer@gmail.com
File Name: torchnlp/text_encoders/spacy_encoder.py
Class Name: SpacyEncoder
Method Name: __init__


Project Name: explosion/spaCy
Commit Name: fd9fd275c5209b64d163943da33cadeea01b247c
Time: 2018-02-06
Author: honnibal+gh@gmail.com
File Name: spacy/tests/regression/test_issue1945.py
Class Name:
Method Name: test_issue1945


Project Name: explosion/spaCy
Commit Name: 364aaf5bc2615581063d14a2dec33d5d083d8966
Time: 2019-08-20
Author: ines@ines.io
File Name: spacy/tests/regression/test_issue3879.py
Class Name:
Method Name: test_issue3879