add extra files
This commit is contained in:
@@ -159,7 +159,7 @@ def dictionary_process(dictionary, in_file):
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
def trasnlator_process(in_file):
|
def translator_process(in_file):
|
||||||
"""Process text trasnlate files"""
|
"""Process text trasnlate files"""
|
||||||
text_list = in_file.open(encoding="utf8").read().split()[1:]
|
text_list = in_file.open(encoding="utf8").read().split()[1:]
|
||||||
results = []
|
results = []
|
||||||
@@ -223,7 +223,7 @@ def main():
|
|||||||
in_file, out_file, file_type = process_files()
|
in_file, out_file, file_type = process_files()
|
||||||
if TEXT_TYPE == file_type:
|
if TEXT_TYPE == file_type:
|
||||||
create_translator()
|
create_translator()
|
||||||
results = trasnlator_process(in_file)
|
results = translator_process(in_file)
|
||||||
output_anki_text(out_file, results)
|
output_anki_text(out_file, results)
|
||||||
else:
|
else:
|
||||||
dictionary = create_cedict()
|
dictionary = create_cedict()
|
||||||
|
|||||||
36
data/input/口语/口语-第10课.-phrases.txt
Normal file
36
data/input/口语/口语-第10课.-phrases.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
TEXT_TYPE
|
||||||
|
衣村生活
|
||||||
|
新农村
|
||||||
|
环境优美
|
||||||
|
优美的音乐
|
||||||
|
羡慕别人
|
||||||
|
让人羡慕污染很严重
|
||||||
|
污染环境
|
||||||
|
空气污染
|
||||||
|
大院子
|
||||||
|
要不人们喜欢在城市里工作呢!
|
||||||
|
种菜
|
||||||
|
院子里种着花
|
||||||
|
美味的食品
|
||||||
|
绿色食品
|
||||||
|
养狗
|
||||||
|
养鱼
|
||||||
|
养花
|
||||||
|
到处走走
|
||||||
|
到处乱跑
|
||||||
|
公共场所
|
||||||
|
学习场所
|
||||||
|
住了两夜
|
||||||
|
熬夜
|
||||||
|
赚钱
|
||||||
|
赚生活费
|
||||||
|
哎,是你呀!
|
||||||
|
说明理由
|
||||||
|
有很多理由
|
||||||
|
各种交通工具
|
||||||
|
加快速度
|
||||||
|
速度很慢
|
||||||
|
食品工厂
|
||||||
|
工厂的设备
|
||||||
|
污染严重
|
||||||
|
严重影响
|
||||||
Reference in New Issue
Block a user