Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Commits
2369f030
Commit
2369f030
authored
2 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Move post processing module into library
parent
39e52ef7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Move post processing module into library
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basic/metric_manager.py
+1
-1
1 addition, 1 deletion
basic/metric_manager.py
dan/post_processing.py
+2
-1
2 additions, 1 deletion
dan/post_processing.py
with
3 additions
and
2 deletions
basic/metric_manager.py
+
1
−
1
View file @
2369f030
...
...
@@ -40,7 +40,7 @@ import re
import
networkx
as
nx
import
editdistance
import
numpy
as
np
from
basic
.post_pocessing
_layout
import
PostProcessingModuleREAD
,
PostProcessingModuleRIMES
from
dan
.post_p
r
ocessing
import
PostProcessingModuleREAD
,
PostProcessingModuleRIMES
class
MetricManager
:
...
...
This diff is collapsed.
Click to expand it.
basic
/post_pocessing
_layout
.py
→
dan
/post_p
r
ocessing.py
+
2
−
1
View file @
2369f030
...
...
@@ -34,6 +34,7 @@
# knowledge of the CeCILL-C license and that you accept its terms.
import
numpy
as
np
from
Datasets.dataset_formatters.read2016_formatter
import
SEM_MATCHING_TOKENS
as
READ_MATCHING_TOKENS
from
Datasets.dataset_formatters.rimes_formatter
import
SEM_MATCHING_TOKENS
as
RIMES_MATCHING_TOKENS
...
...
@@ -253,7 +254,7 @@ class PostProcessingModuleRIMES(PostProcessingModule):
ind
+=
1
# a tag must be closed
if
begin_token
is
not
None
:
self
.
insert_label
(
ind
+
1
,
self
.
matching_tokens
[
begin_token
])
self
.
insert_label
(
ind
+
1
,
self
.
matching_tokens
[
begin_token
])
res
=
""
.
join
(
self
.
prediction
)
if
self
.
confidence
is
not
None
:
return
res
,
np
.
array
(
self
.
confidence
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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