Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
13595b6c
Commit
13595b6c
authored
1 year ago
by
Alina Wróblewska
Browse files
Options
Downloads
Patches
Plain Diff
Update prediction.md
parent
e6eb721f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#10128
failed with stage
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/prediction.md
+12
-0
12 additions, 0 deletions
docs/prediction.md
with
12 additions
and
0 deletions
docs/prediction.md
+
12
−
0
View file @
13595b6c
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment