KairongLiu/CLTMPSE
By KairongLiu · ↓ 0 · ♥ 1 · Updated 2024-11-29
What's in this repo
This page lists the files in KairongLiu/CLTMPSE, including model.onnx.
- 1 ONNX models (.onnx files)
- 141 files, including 29 .json, 18 .bin, 15 .tgt, 13 .pkl, 11 .src, 11 .txt
- Last updated 2024-11-29
ONNX files
| File | Size | Download |
|---|---|---|
| foundation/E5/onnx/model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Chinese-Lao-Thai-Multilingual-Parallel-Sentence-Pair-Extraction(CLTMPSE)
#step1. preprocess 构造音标词典和词替换规则,构造训练数据:
- open utils/IPA_sim_statistic_analysis.py
- set statistic_conclusion_exist=False (row 96)
- run , then generate IPA_lo_dict and IPA_th_dict
- set statistic_conclusion_exist=True
- run, then generate same_list
#step2. train 开始训练:
- set params
- run main.py
--do_train --evaluate_during_training --train_data_file train.json --eval_data_file valid.json --test_data_file test_lo.json --data_dir data --lang replace_word_level --mode 73 --data_dir data --output_dir ./models --num_train_epochs 20 --max_seq_length 200 --gradient_accumulation_steps 1 --warmup_steps 500 --train_batch_size 32 --eval_batch_size 16
#step3. test 测试:
- set params
- run main.py
test lo
--do_test --test_data_file test_lo.json --data_dir data --lang replace_word_level --mode 73 --data_dir data --output_dir ./models --max_seq_length 200 --eval_batch_size 16
test th
--do_test --test_data_file test_th.json --data_dir data --lang replace_word_level --mode 73 --data_dir data --output_dir ./models --max_seq_length 200 --eval_batch_size 16
Model info
Created: 2024-11-28
Updated: 2024-11-29
View on Hugging FaceFiles (141)
Related models
More from KairongLiu
No other models by this author.
More models
No task type declared.