text_plain_output_1.png
from gensim.models import KeyedVectors

FILE_PATH = '../input/fasttext-wikinews/wiki-news-300d-1M.vec'

keyed_vec = KeyedVectors.load_word2vec_format(FILE_PATH)

for word in ['hello', '!', '2', 'Turing', 'foobarz', 'hi!']:
    print(word, 'is in the vocabulary:', word in keyed_vec.vocab)