How to use commas as participle intervals in Word2vec training English texts?

use TXT documents as corpus, each phrase has a space, but the default space is interval during training, so the result is a single word. How to set the text to be separated by commas?

Mar.14,2021

w = open (.)
file = w.readlines ()
file.replace (",")
probably that will do.

Menu