filtering and checking chars... somehow not syncing

This commit is contained in:
josh 2018-12-13 11:10:10 -08:00
parent 230dc15751
commit f534199534
4 changed files with 39 additions and 61 deletions

View File

@ -37,7 +37,7 @@ source ../tmp/venv/bin/activate
# train from scratch with num_layers_dropped=6
num_layers_dropped=6
target_lang='LANG'
target_lang='cy'
source_model='en-v030'

View File

@ -1,65 +1,40 @@
-
,
!
?
.
'
\
%
3
a
A
â
ä
b
B
c
C
d
D
e
E
ê
f
F
g
G
h
H
i
I
î
ï
j
J
k
K
l
L
m
M
n
N
o
O
ô
p
P
r
R
s
S
t
T
u
U
v
w
W
ŵ
y
Y
é
a
e
g
i
ŷ
m
r
u
o
b
ä
d
ï
s
t
y
w
ö
h
c
l
â
ô
v
k
î
n
j
á
f
z
#

View File

@ -115,6 +115,9 @@ validated_clips['path'] = validated_clips['wav_filename'].apply(ntpath.basename)
validated_clips['transcript'] = validated_clips['transcript'].str.replace(u'\xa0', ' ') # kyrgyz
validated_clips['transcript'] = validated_clips['transcript'].str.replace(u'\xad', ' ') # catalan
validated_clips['transcript'] = validated_clips['transcript'].str.replace(u'\\', ' ') # welsh
validated_clips['transcript'] = validated_clips['transcript'].str.replace(u'', ' ') # german
validated_clips['transcript'] = validated_clips['transcript'].str.replace(u'', ' ') # german
print(validated_clips.head())

View File

@ -43,5 +43,5 @@ for inFile in (inFiles):
csvFile.close()
print("### The following unique characters were found in your transcripts: ###")
print(list(allText))
print(sorted(list(allText)))
print("### All these characters should be in your data/alphabet.txt file ###")