Spaces:
Running on Zero
Running on Zero
Update text/g2p_frysk/g2p_frysk.py
Browse files
text/g2p_frysk/g2p_frysk.py
CHANGED
|
@@ -36,9 +36,11 @@ def tokenize_punctuation(input_str):
|
|
| 36 |
return output
|
| 37 |
|
| 38 |
def g2p_frysk_utterance(input_g2p):
|
|
|
|
|
|
|
|
|
|
| 39 |
input_g2p = numbers_normalize(tokenize_punctuation(split_punctuation(input_g2p)))
|
| 40 |
|
| 41 |
-
input_g2p = input_g2p.replace("'", "’")
|
| 42 |
_ = graph2phone.g2p_wrapper(input_g2p)
|
| 43 |
|
| 44 |
df = pd.read_csv('text/g2p_frysk/test_g2p.txt', sep='\t')
|
|
|
|
| 36 |
return output
|
| 37 |
|
| 38 |
def g2p_frysk_utterance(input_g2p):
|
| 39 |
+
input_g2p = input_g2p.replace('"', '')
|
| 40 |
+
input_g2p = input_g2p.replace("'", "’")
|
| 41 |
+
|
| 42 |
input_g2p = numbers_normalize(tokenize_punctuation(split_punctuation(input_g2p)))
|
| 43 |
|
|
|
|
| 44 |
_ = graph2phone.g2p_wrapper(input_g2p)
|
| 45 |
|
| 46 |
df = pd.read_csv('text/g2p_frysk/test_g2p.txt', sep='\t')
|