Update README.md
Browse filesAdd predict.sh description
README.md
CHANGED
@@ -12,13 +12,12 @@ This version of parser is based on XLM-R Base encoder. The encoder weights were
|
|
12 |
## Usage
|
13 |
|
14 |
1. Clone https://github.com/CobaldAnnotation/CobaldParser, go to the repo directory and install requirements.
|
15 |
-
2. Download the `model.
|
16 |
-
3. Run `allennlp predict` with the following arguments on the conllu file you want to annotate with CoBaLD:
|
17 |
```
|
18 |
-
|
19 |
-
--output-file <OUTPUT_CONLLU_FILE> \
|
20 |
-
--include-package src \
|
21 |
-
--predictor morpho_syntax_semantic_predictor \
|
22 |
-
--use-dataset-reader
|
23 |
```
|
24 |
-
|
|
|
|
|
|
|
|
|
|
12 |
## Usage
|
13 |
|
14 |
1. Clone https://github.com/CobaldAnnotation/CobaldParser, go to the repo directory and install requirements.
|
15 |
+
2. Download the `model.tag.gz` file. You can do it manually of via:
|
|
|
16 |
```
|
17 |
+
git clone https://huggingface.co/CoBaLD/xlm-roberta-base-cobald-parser-ru
|
|
|
|
|
|
|
|
|
18 |
```
|
19 |
+
3. Run `predict.sh` script to inference the model against an input conllu file you want to annotate with CoBaLD:
|
20 |
+
```
|
21 |
+
./predict.sh PATH_TO_MODEL.tar.gz INPUT.conllu OUTPUT.conllu
|
22 |
+
```
|
23 |
+
4. Now see the results in OUTPUT.conllu.
|