794bd558da80b65713b51a964ec61e7ef36d4bf2,examples/intent_extraction/interactive.py,,,#,34

Before Change



if not os.path.exists(args.model_path):
    print("model_path does not exist")
    sys.exit(0)
if not os.path.exists(args.dataset_path):
    print("dataset_path does not exist")
    sys.exit(0)
if args.embedding_model is not None and not os.path.exists(args.embedding_model):

After Change


    ds = SNIPS(path=args.dataset_path)
    nlp = SpacyInstance(disable=["tagger", "ner", "parser", "vectors", "textcat"])

    emb_vectors = None
    if args.embedding_model is not None:
        print("Loading external word embedding model")
        emb_vectors, emb_size = load_word_embeddings(args.embedding_model)

    while True:
        text = input(">> ")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37
Time: 2018-07-06
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option


Project Name: streamlit/streamlit
Commit Name: c786913462decebc4157ac3e8d2ec08303021adc
Time: 2018-07-02
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option