Hey,
I have quite a bit of experience with automation scripts using Bash/Shell scripting and Python. Ideally, for this project we will need some sort of Regular Expression analysis (regex). I just need some more information on what exactly you want to replace with a <unk> tag.
Kind Regards,
Fahd