Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
177 B
2
Indexable
Never
import numpy as np 

vocab = ["this", "is", "is", "randomword"]
vocab = np.array(vocab)

for word in vocab:
    masque = vocab == word
    print(masque)
    print(vocab[masque])