Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
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
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
Analysers
corpus2
Commits
6310660e
Commit
6310660e
authored
11 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
tagger-eval: also count KN/UNK POS SC LOWER
parent
5113ae99
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/tagger-eval.py
+4
-0
4 additions, 0 deletions
utils/tagger-eval.py
with
4 additions
and
0 deletions
utils/tagger-eval.py
+
4
−
0
View file @
6310660e
...
...
@@ -148,6 +148,7 @@ class Metric:
POS_WC
=
([
Feat
.
WEAK_POS_HIT
],
None
)
POS_SC
=
([
Feat
.
STRONG_POS_HIT
],
None
)
POS_WC_LOWER
=
([
Feat
.
WEAK_POS_HIT
,
Feat
.
SEG_NOCHANGE
],
None
)
# lower bound for POS WC
POS_SC_LOWER
=
([
Feat
.
STRONG_POS_HIT
,
Feat
.
SEG_NOCHANGE
],
None
)
# lower bound for POS SC
# separate stats for known and unknown forms
KN_WC
=
([
Feat
.
WEAK_TAG_HIT
,
Feat
.
KNOWN
],
[
Feat
.
KNOWN
])
UNK_WC
=
([
Feat
.
WEAK_TAG_HIT
,
Feat
.
UNKNOWN
],
[
Feat
.
UNKNOWN
])
...
...
@@ -160,6 +161,9 @@ class Metric:
UNK_WC_LOWER
=
([
Feat
.
WEAK_TAG_HIT
,
Feat
.
SEG_NOCHANGE
,
Feat
.
UNKNOWN
],
[
Feat
.
UNKNOWN
])
KN_SEG_CHANGE
=
([
Feat
.
SEG_CHANGE
,
Feat
.
KNOWN
],
[
Feat
.
KNOWN
])
UNK_SEG_CHANGE
=
([
Feat
.
SEG_CHANGE
,
Feat
.
UNKNOWN
],
[
Feat
.
UNKNOWN
])
KN_POS_SC_LOWER
=
([
Feat
.
STRONG_POS_HIT
,
Feat
.
SEG_NOCHANGE
,
Feat
.
KNOWN
],
[
Feat
.
KNOWN
])
UNK_POS_SC_LOWER
=
([
Feat
.
STRONG_POS_HIT
,
Feat
.
SEG_NOCHANGE
,
Feat
.
UNKNOWN
],
[
Feat
.
UNKNOWN
])
# heur recover
PUNCHIT_PUNCONLY
=
([
Feat
.
ALLPUNC_HIT
],
None
)
...
...
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