added replace_punctuation function that replaces commas in attribution string with spaces (otherwise the comma character is just deleted, which causes different tokens to appear as the same word