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
No related branches found
No related tags found
No related merge requests found
Pipeline #10128 failed
...@@ -29,6 +29,18 @@ tokenized_sentence = ["Sentence", "to", "parse", "."] ...@@ -29,6 +29,18 @@ tokenized_sentence = ["Sentence", "to", "parse", "."]
sentence = nlp([tokenized_sentence]) 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 ## COMBO as a command-line interface
### CoNLL-U file prediction: ### CoNLL-U file prediction:
Input and output are both in `*.conllu` format. Input and output are both in `*.conllu` format.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment