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
7e5701eb
Commit
7e5701eb
authored
Sep 18, 2022
by
Vít Novotný
Browse files
Add `*-ORG` and `*-MISC` to `AggregateMeanFScore.GROUPS`
parent
63feb75b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ahisto_named_entity_search/recognition/evaluator.py
View file @
7e5701eb
...
...
@@ -20,9 +20,9 @@ FScore = float
class
AggregateMeanFScore
(
TokenClassificationEvaluator
):
GROUPS
:
GroupMap
=
{
'PER'
:
(
'B-PER'
,
'I-PER'
),
'LOC'
:
(
'B-LOC'
,
'I-LOC'
),
'O'
:
(
'O'
,
),
'PER'
:
(
'B-PER'
,
'I-PER'
,
'B-ORG'
,
'I-ORG'
),
'LOC'
:
(
'B-LOC'
,
'I-LOC'
,
'B-ORG'
,
'I-ORG'
),
'O'
:
(
'O'
,
'B-MISC'
,
'I-MISC'
),
}
def
__init__
(
self
,
category_map
:
CategoryMap
,
group_name
:
Optional
[
GroupName
],
...
...
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