Commit 4f9592e7 authored by cristian Quezada's avatar cristian Quezada

Actualizando modelos

parent 8ba99638
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
git : [DeepSpeech](https://github.com/mozilla/DeepSpeech) git : [DeepSpeech](https://github.com/mozilla/DeepSpeech)
## Requisitos: ## Requisitos:
* Python 3.6 * Python 3.5 o 3.6
* Linux o Mac * Linux o Mac
Algunos comandos: Algunos comandos:
......
File added
...@@ -12,6 +12,8 @@ f ...@@ -12,6 +12,8 @@ f
g g
h h
i i
j
k
l l
m m
n n
...@@ -23,5 +25,9 @@ s ...@@ -23,5 +25,9 @@ s
t t
u u
v v
w
x
y
z z
'
# The last (non-comment) line needs to end with a newline. # The last (non-comment) line needs to end with a newline.
File added
This diff is collapsed.
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import csv" "import csv\n",
"import re"
] ]
}, },
{ {
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -52,7 +53,8 @@ ...@@ -52,7 +53,8 @@
"file = open('vocabulary_es.txt','w') \n", "file = open('vocabulary_es.txt','w') \n",
"with open('D:/SpeechServices/data/spanish-single-speaker-speech-dataset/transcript.txt',encoding='utf-8') as txtfile:\n", "with open('D:/SpeechServices/data/spanish-single-speaker-speech-dataset/transcript.txt',encoding='utf-8') as txtfile:\n",
" for line in txtfile:\n", " for line in txtfile:\n",
" file.write(line.split('|')[1])\n", " text = re.sub('\\W+', '', line.split('|')[1])\n",
" file.write(text)\n",
"file.close()" "file.close()"
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment