Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pinyin2hanzi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邵子睿(21软)
pinyin2hanzi
Commits
fa243135
Commit
fa243135
authored
Jan 06, 2022
by
szr712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试政史地模型第一版
parent
3f931405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
cer.py
cer.py
+3
-2
log.txt
log.txt
+3
-0
No files found.
cer.py
View file @
fa243135
...
...
@@ -65,7 +65,7 @@ def cer(preFile,textFile):
round
(
float
(
all_edit_distance
)
/
all_chars
,
5
)))
if
__name__
==
"__main__"
:
preFile
=
"./data/test_data/end2end
/Chinese/hanzi
"
textFile
=
"./data/test_data/end2end/gt"
preFile
=
"./data/test_data/end2end
_zsd/pre
"
textFile
=
"./data/test_data/end2end
_zsd
/gt"
cer
(
preFile
,
textFile
)
\ No newline at end of file
log.txt
View file @
fa243135
...
...
@@ -47,3 +47,6 @@ CUDA_VISIBLE_DEVICES=5 python train_token_classification.py -src_data data/train
CUDA_VISIBLE_DEVICES=4 python translate2.py -load_weights weights/token_classification_aug/token_classification_split_new_119_0.0013118577939167154 -pkl_dir weights/token_classification_aug -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt
CUDA_VISIBLE_DEVICES=4 python translate_file2.py -load_weights weights/token_classifiaction_aug_Chinese/token_classification_split_Chinese_148_0.012723878987599165 -pkl_dir weights/token_classifiaction_aug_Chinese -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt -test_dir data/test_data/end2end/Chinese/pinyin -result_dir data/test_data/end2end/Chinese/hanzi
CUDA_VISIBLE_DEVICES=4 python translate_file2.py -load_weights weights/token_classification_split_zsd/token_classification_split_zsd/token_classification_split_zsd_98_0.0004903546059381369 -pkl_dir weights/token_classification_split_zsd/token_classification_split_zsd -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt -test_dir data/test_data/end2end_zsd/pinyin -result_dir data/test_data/end2end_zsd/pre
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment