Skip to content

Load entities from external JSON file#479

Draft
pierrebeauguitte wants to merge 2 commits intoePADD:mainfrom
NationalLibraryOfNorway:feat/read-entities-from-json-file
Draft

Load entities from external JSON file#479
pierrebeauguitte wants to merge 2 commits intoePADD:mainfrom
NationalLibraryOfNorway:feat/read-entities-from-json-file

Conversation

@pierrebeauguitte
Copy link

(Work in progress)
Instead of running a NER model in ePADD, load entities from a JSON file.

Syntax of file should be:

[
  {
    "message-id": "<abcdef1234567890>",
    "entities": [
      {
        "entity_group": "LOC",
        "score": 0.9995821118354797,
        "word": "Oslo",
        "start": 29,
        "end": 33
      }, ...
    ]
  }, ...
]

Location of JSON file has to be specified in epadd.properties file (a better solution is of course to choose the file via the "Import" web interface).

@jfarwer jfarwer marked this pull request as ready for review December 20, 2024 11:31
@jfarwer
Copy link
Collaborator

jfarwer commented Dec 20, 2024

Thanks so much for the contribution, really appreciate your effort.

@jfarwer jfarwer marked this pull request as draft December 20, 2024 11:36
@titaenstad titaenstad deleted the feat/read-entities-from-json-file branch June 5, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants