Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
全部重訓練囥去指令彼爿
Browse files Browse the repository at this point in the history
  • Loading branch information
sih4sing5hong5 committed Jun 8, 2018
1 parent 2e50384 commit f4750e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions 臺灣言語服務/Kaldi介面.py
Expand Up @@ -171,9 +171,3 @@ def _blob2bytes(cls, blob):
return bytes(json.loads(
'[' + b64decode(blob).decode('utf-8') + ']'
))


def 無辨識過的重訓練一擺():
for Kaldi辨識 in Kaldi語料辨識.objects.filter(辨識好猶未=False):
Kaldi辨識.辨識()
return JsonResponse({'成功': '成功'})
7 changes: 4 additions & 3 deletions 臺灣言語服務/management/commands/Kaldi辨識一斗.py
@@ -1,11 +1,12 @@
from django.core.management.base import BaseCommand


from 臺灣言語服務.Kaldi介面 import 無辨識過的重訓練一擺
from 臺灣言語服務.Kaldi語料辨識 import Kaldi語料辨識


class Command(BaseCommand):
help = '無辨識過的音檔重訓練一擺'

def handle(self, *args, **參數):
無辨識過的重訓練一擺()
def handle(self, *_args, **_參數):
for Kaldi辨識 in Kaldi語料辨識.objects.filter(辨識好猶未=False):
Kaldi辨識.辨識()

0 comments on commit f4750e1

Please sign in to comment.