Skip to content

Commit

Permalink
Merge pull request #326 from UnB-KnEDLe/highlight_patch
Browse files Browse the repository at this point in the history
Highlight structure now returns entity type
  • Loading branch information
andlq committed Mar 18, 2023
2 parents 228494d + 65f2d62 commit 702b4bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dodfminer/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version_info = (1, 4, 4)
version_info = (1, 4, 5)
# format:
# ('dodf_major', 'dodf_minor', 'dodf_patch')

Expand Down
4 changes: 3 additions & 1 deletion dodfminer/extract/polished/acts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def highlight_dataframe(self):
current_ent = {
"name": [],
"start": None,
"end": None
"end": None,
"type": None
}

if "B-" in IOB[i]:
Expand All @@ -233,6 +234,7 @@ def highlight_dataframe(self):

current_ent["start"] = len(aux_text_string) + 1
current_ent["name"].append(text_split[i])
current_ent["type"] = entity_name

i += 1

Expand Down
4 changes: 3 additions & 1 deletion dodfminer/extract/polished/acts/base_contratos.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def highlight_dataframe(self):
current_ent = {
"name": [],
"start": None,
"end": None
"end": None,
"type": None
}

if "B-" in IOB[i]:
Expand All @@ -159,6 +160,7 @@ def highlight_dataframe(self):

current_ent["start"] = len(aux_text_string) + 1
current_ent["name"].append(text_split[i])
current_ent["type"] = entity_name

i += 1

Expand Down

0 comments on commit 702b4bf

Please sign in to comment.