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
c3b184d3
Commit
c3b184d3
authored
1 year ago
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Add a from_pretrained example to README.md
parent
ad2a1908
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+22
-0
22 additions, 0 deletions
README.md
with
22 additions
and
0 deletions
README.md
+
22
−
0
View file @
c3b184d3
...
...
@@ -30,6 +30,28 @@ pip install -e .
import
combo
```
Pretrained model usage:
```
python
from
combo.predict
import
COMBO
c
=
COMBO
.
from_pretrained
(
"
model
"
)
prediction
=
c
(
"
To jest przykładowe zdanie.
"
)
print
(
"
{:15} {:15} {:10} {:10} {:10}
"
.
format
(
'
TOKEN
'
,
'
LEMMA
'
,
'
UPOS
'
,
'
HEAD
'
,
'
DEPREL
'
))
for
token
in
prediction
.
tokens
:
print
(
"
{:15} {:15} {:10} {:10} {:10}
"
.
format
(
token
.
text
,
token
.
lemma
,
token
.
upostag
,
token
.
head
,
token
.
deprel
))
```
Example output:
```
TOKEN LEMMA UPOS HEAD DEPREL
To to AUX 4 cop
jest być AUX 4 cop
przykładowe przykładowy ADJ 4 amod
zdanie zdanie NOUN 0 root
. . PUNCT 4 punct
```
## Use COMBO CLI
The minimal training example (make sure to download some conllu training and validation files)
...
...
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