from pattern.search import search, taxonomy, Classifier
from pattern.en import parsetree
for flower in ("rose", "lily", "daisy", "daffodil", "begonia"):
taxonomy.append(flower, type="flower")
tree = parsetree("A field of white daffodils.", lemmata=True)
result = search("FLOWER", t) # TypeError: can't compile 'str' object
The search function fails in 2.7, whereas it works in 3.6.4
The search function fails in 2.7, whereas it works in 3.6.4