I need to remove a given vector of words from a sentence (a given String) in Python.
The problem is that i want to remove exactly words but not substrings or subwords.
note: i cannot assume that before or after the word there is a space
I tried the .replace(word,"")
function but not works
example: s = "I'am at home and i will work by webcam call"
when i do s.replace("am","")
outputs: i' at home and i will work by webc call
maybe can help the tokenization?