Update README.md
Browse files
README.md
CHANGED
@@ -13,10 +13,24 @@ tags:
|
|
13 |
- translation
|
14 |
---
|
15 |
# Model Description
|
16 |
-
Refer to [https://github.com/qiyuw/WSPAlign](https://github.com/qiyuw/WSPAlign)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
# Citation
|
19 |
-
Cite our paper if
|
20 |
|
21 |
```bibtex
|
22 |
@inproceedings{wu-etal-2023-wspalign,
|
|
|
13 |
- translation
|
14 |
---
|
15 |
# Model Description
|
16 |
+
Refer to [https://github.com/qiyuw/WSPAlign](https://github.com/qiyuw/WSPAlign) and [https://github.com/qiyuw/WSPAlign.InferEval](https://github.com/qiyuw/WSPAlign.InferEval) for details.
|
17 |
+
|
18 |
+
# Qucik Usage
|
19 |
+
|
20 |
+
First clone inference repository:
|
21 |
+
```
|
22 |
+
git clone https://github.com/qiyuw/WSPAlign.InferEval.git
|
23 |
+
```
|
24 |
+
Then install the requirements following [https://github.com/qiyuw/WSPAlign.InferEval](https://github.com/qiyuw/WSPAlign.InferEval). For inference only `transformers`, `SpaCy` and `torch` are required.
|
25 |
+
|
26 |
+
Finally, run the following example:
|
27 |
+
```
|
28 |
+
python inference.py --model_name_or_path qiyuw/WSPAlign-ft-kftt --src_lang ja --src_text="私は猫が好きです。" --tgt_lang en --tgt_text="I like cats."
|
29 |
+
```
|
30 |
+
Check `inference.py` for details usage.
|
31 |
|
32 |
# Citation
|
33 |
+
Cite our paper if WSPAlign helps your work:
|
34 |
|
35 |
```bibtex
|
36 |
@inproceedings{wu-etal-2023-wspalign,
|