You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Please how can i read my annotated data with another tool named Doccano. 1) Here is my annotated data's form:
"annotation": [
[
79,
99,
"Nom complet"
],
2) The code that i want to change to read my annotated data:
for line in lines:
data = json.loads(line)
text = data['content']
entities = []
for annotation in data['annotation']:
#only a single point in text annotation.
point = annotation['points'][0]
labels = annotation['label']
# handle both list of labels or a single label.
if not isinstance(labels, list):
labels = [labels]
for label in labels:
#dataturks indices are both inclusive [start, end] but spacy is not [start, end)
entities.append((point['start'], point['end'] + 1 ,label))
The text was updated successfully, but these errors were encountered:
Hi,
Please how can i read my annotated data with another tool named Doccano.
1) Here is my annotated data's form:
2) The code that i want to change to read my annotated data:
The text was updated successfully, but these errors were encountered: