Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
winer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
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
nlpworkers
winer
Commits
081c9264
Commit
081c9264
authored
1 year ago
by
Tomasz Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
Update winer_worker.py
parent
16b95b53
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#17460
failed with stages
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winer_worker.py
+7
-0
7 additions, 0 deletions
src/winer_worker.py
with
7 additions
and
0 deletions
src/winer_worker.py
+
7
−
0
View file @
081c9264
...
...
@@ -2,6 +2,8 @@
from
winer
import
Winer
,
allign_into_entities
,
get_sentences_from_document
import
clarin_json
from
clarin_json.containers
import
Span
import
gc
import
torch
import
nlp_ws
...
...
@@ -74,3 +76,8 @@ class WinerWorker(nlp_ws.NLPWorker):
# Write processed document
fout
.
write
(
document
)
#clean the memory
gc
.
collect
()
torch
.
cuda
.
empty_cache
()
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