Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scribe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Ala
Scribe
Commits
3425fb9d
Commit
3425fb9d
authored
9 months ago
by
Julien B.
Browse files
Options
Downloads
Patches
Plain Diff
fix(annotator): fix json loads
parent
da9db883
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/internal_services/annotator.py
+1
-1
1 addition, 1 deletion
api/internal_services/annotator.py
with
1 addition
and
1 deletion
api/internal_services/annotator.py
+
1
−
1
View file @
3425fb9d
...
@@ -49,7 +49,7 @@ def annotation_process(job):
...
@@ -49,7 +49,7 @@ def annotation_process(job):
logger
.
debug
(
f
"
Incoming gRPC message :
{
response
.
status
}
"
)
logger
.
debug
(
f
"
Incoming gRPC message :
{
response
.
status
}
"
)
logger
.
debug
(
f
"
fin de la connexion gRPC
"
)
logger
.
debug
(
f
"
fin de la connexion gRPC
"
)
response
=
json
.
load
(
response
.
inference_result
)
response
=
json
.
load
s
(
response
.
inference_result
)
from
api.internal_services.neo4j
import
driver
,
get_id_multi_tokens
,
get_id_single_tokens
,
create_concept_node
,
create_concept_relation
from
api.internal_services.neo4j
import
driver
,
get_id_multi_tokens
,
get_id_single_tokens
,
create_concept_node
,
create_concept_relation
with
(
driver
.
session
()
as
session
):
with
(
driver
.
session
()
as
session
):
for
span
in
response
:
for
span
in
response
:
...
...
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