Skip to content
Snippets Groups Projects
Commit a30281b3 authored by Alina Wróblewska's avatar Alina Wróblewska Committed by Lukasz Pszenny
Browse files

Update prediction.md

parent 535f02d4
No related merge requests found
......@@ -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