Open soledada opened 8 years ago
ah = Ahocorasick() ah.addWord("in morphine preservativ free") ah.addWord("medicine") ah.make() all_the_text = "in medicine." arraylist = ah.search(all_the_text) print arraylist
ans: [(0, 10)]
right ans: (3,10)
@soledada your ans should be: [(0, 10), (3, 10)]
ans: [(0, 10)]
right ans: (3,10)