How would I go about finding a bigram in a list? For example, if I wanted to find the
bigram = list(nltk.bigrams("New York"))
In a list of words,
words = nltk.corpus.brown.words(fileids=["ca44"])
I have tried doing,
for t in bigram:
if t in words:
*do something*
As well as,
if bigram in words:
*do something*