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

Before Change


                    help="Word embedding model vector size")
args = parser.parse_args()

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):

After Change


                        help="Word embedding model vector size")
    args = parser.parse_args()
    if args.embedding_size is not None:
        validate((args.embedding_size, int, 1, 10000))

    model = IntentExtractionModel()
    model.load(args.model_path)
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: NervanaSystems/nlp-architect
Commit Name: 31086b0d0c6deef1425bdada8c3bf6dc0c1cf542
Time: 2018-05-13
Author: daniel.korat@intel.com
File Name: nlp_architect/utils/io.py
Class Name:
Method Name: validate_existing_filepath


Project Name: OpenNMT/OpenNMT-py
Commit Name: a904430292728a20adb86a9aa3601729c22e7434
Time: 2017-11-11
Author: dengyuntian@gmail.com
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: _read_img_file