Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nlp
ahisto-modules
Named Entity Recognition Experiments
Commits
f7aef48c
Commit
f7aef48c
authored
Sep 12, 2022
by
Vít Novotný
Browse files
Fix type check
parent
7770581d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ahisto_named_entity_search/recognition/model.py
View file @
f7aef48c
...
...
@@ -45,6 +45,7 @@ class NerModel:
@
property
def
model
(
self
)
->
AutoModelForTokenClassification
:
model
=
AutoModelForTokenClassification
.
from_pretrained
(
self
.
model_name_or_basename
)
return
model
def
__str__
(
self
)
->
str
:
return
self
.
model_name_or_basename
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment