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
d267f112
Commit
d267f112
authored
1 year ago
by
Alina Wróblewska
Browse files
Options
Downloads
Patches
Plain Diff
Readme updated
parent
89bd7bea
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#16389
failed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-4
11 additions, 4 deletions
README.md
with
11 additions
and
4 deletions
README.md
+
11
−
4
View file @
d267f112
...
...
@@ -16,7 +16,13 @@ Not all of the requirements are available on `conda`, so `pip` is also required.
conda
install
pip
```
## Install requirements
## Automatic installation
```
bash
pip
install
combo-nlp
```
## Source installation
Install the requirements using the
`setup.py`
file.
...
...
@@ -34,11 +40,12 @@ Pretrained model usage:
```
python
from
combo.predict
import
COMBO
c
=
COMBO
.
from_pretrained
(
"
model
"
)
prediction
=
c
(
"
To jest przykładowe zdanie.
"
)
c
=
COMBO
.
from_pretrained
(
'
polish-herbert-base-ud213
'
)
prediction
=
c
(
"
To jest przykładowe
zdanie. To jest drugie
zdanie.
"
)
# Display the first sentence predictions
print
(
"
{:15} {:15} {:10} {:10} {:10}
"
.
format
(
'
TOKEN
'
,
'
LEMMA
'
,
'
UPOS
'
,
'
HEAD
'
,
'
DEPREL
'
))
for
token
in
prediction
.
tokens
:
for
token
in
prediction
[
0
]
.
tokens
:
print
(
"
{:15} {:15} {:10} {:10} {:10}
"
.
format
(
token
.
text
,
token
.
lemma
,
token
.
upostag
,
token
.
head
,
token
.
deprel
))
```
...
...
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