mirror of
https://github.com/dongdongunique/EvoSynth.git
synced 2026-06-02 05:01:47 +02:00
first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
def tokenize(text):
|
||||
return text.split()
|
||||
|
||||
def normalize(text):
|
||||
return text.lower().strip()
|
||||
|
||||
def remove_punctuation(text):
|
||||
import string
|
||||
return text.translate(str.maketrans('', '', string.punctuation))
|
||||
Reference in New Issue
Block a user