Closed faisito closed 4 years ago
the function drop_final_s is not needed (not used anywhere else in the code)
def drop_final_s(word): return re.sub("s$", "", word)
I take back my comment. The code appears later in the chapter (p.183), on how to improve the model. Apologies
the function drop_final_s is not needed (not used anywhere else in the code)
def drop_final_s(word): return re.sub("s$", "", word)