Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nerval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Named Entity Recognition
nerval
Merge requests
!5
Correct research of predicted entity beginning
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Correct research of predicted entity beginning
correct_entities_beginning
into
master
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Thibault Lavigne
requested to merge
correct_entities_beginning
into
master
3 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
Expand
The first letter of predicted entity was missing in some cases.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0a216a31
2 commits,
3 years ago
2 files
+
101
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
nerval/evaluate.py
+
11
−
1
Options
@@ -273,7 +273,17 @@ def compute_matches(
and
j
not
in
visited_predict
):
j
-=
1
current_compar
+=
prediction
[
j
+
1
:
i
]
if
(
"
B
"
in
labels_predict
[
j
]
and
get_type_label
(
labels_predict
[
j
])
==
tag_ref
and
j
not
in
visited_predict
):
start
=
j
else
:
start
=
j
+
1
current_compar
+=
prediction
[
start
:
i
]
found_aligned_beginning
=
True
current_compar
.
append
(
prediction
[
i
])
Loading