houcha commited on
Commit
c5cf9ff
·
verified ·
1 Parent(s): 4215f94

Update README.md

Browse files

Add predict.sh description

Files changed (1) hide show
  1. README.md +7 -8
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.tar.gz` file. You can do it manually of via `git clone https://huggingface.co/CoBaLD/xlm-roberta-base-cobald-parser-ru`.
16
- 3. Run `allennlp predict` with the following arguments on the conllu file you want to annotate with CoBaLD:
17
  ```
18
- allennlp predict <PATH_TO_model.tar.gz> <INPUT_CONLLU_FILE> \
19
- --output-file <OUTPUT_CONLLU_FILE> \
20
- --include-package src \
21
- --predictor morpho_syntax_semantic_predictor \
22
- --use-dataset-reader
23
  ```
24
- 4. Now see the results in output conllu file you specified.
 
 
 
 
 
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.