e998834136c5074583f528b7422c56ab57009c1f,nlp_architect/utils/text.py,SpacyTokenizer,__init__,#SpacyTokenizer#Any#,120

Before Change


        try:
            self.parser = spacy.load(model, disable=pipeline_opts)
        except OSError:
            print("Spacy English model not found".format(model))
            print("to download an English model using Spacy, please run:")
            print("    python -m spacy download en_core_web_sm")
            print("")
            print("Spacy license:  MIT")

After Change


            url = "https://spacy.io/models/en//en_core_web_sm"
            print("License: Creative Commons v3-BY-SA "
                  "https://creativecommons.org/licenses/by-sa/3.0/")
            response = input("To download the model from {}, "
                             + "please type YES: ".format(url))
            if response.lower().strip() == "yes":
                print("The terms and conditions of the data set license apply. Intel does not "
                      "grant any rights to the data files or database")
                print("Downloading Spacy model...")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: e998834136c5074583f528b7422c56ab57009c1f
Time: 2018-05-09
Author: peter.izsak@intel.com
File Name: nlp_architect/utils/text.py
Class Name: SpacyTokenizer
Method Name: __init__


Project Name: geekcomputers/Python
Commit Name: 540a1afef555acb0df0c0fa80642ea6156bcf2c8
Time: 2019-10-23
Author: abrahamguernsey@gmail.com
File Name: find_cube_root.py
Class Name:
Method Name:


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 06c50f050dc143126636b6c9b7d80ee3468377a6
Time: 2019-04-06
Author: guillaume.klein@systrangroup.com
File Name: examples/serving/ende_client.py
Class Name:
Method Name: main