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(">> ")