Skip to content
Snippets Groups Projects
Commit 13595b6c authored by Alina Wróblewska's avatar Alina Wróblewska
Browse files

Update prediction.md

parent e6eb721f
Branches
Tags
No related merge requests found
Pipeline #10128 failed with stage
in 1 minute and 32 seconds
......@@ -29,6 +29,18 @@ tokenized_sentence = ["Sentence", "to", "parse", "."]
sentence = nlp([tokenized_sentence])
```
You can use COMBO with the [LAMBO](https://gitlab.clarin-pl.eu/syntactic-tools/lambo) tokeniser (Note: installing LAMBO is necessary, see [LAMBO installation](https://gitlab.clarin-pl.eu/syntactic-tools/lambo#installation) ).
```python
# Import COMBO and lambo
from combo.predict import COMBO
from combo.utils import lambo
# Download models
nlp = COMBO.from_pretrained("english-bert-base-ud29",tokenizer=lambo.LamboTokenizer("en"))
sentences = nlp("This is the first sentence. This is the second sentence to parse.")
```
## COMBO as a command-line interface
### CoNLL-U file prediction:
Input and output are both in `*.conllu` format.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment