From d8f44a022e6e626c5824d8ed58fa8a44cdba73b9 Mon Sep 17 00:00:00 2001 From: cneud Date: Mon, 12 Aug 2019 18:17:51 +0200 Subject: [PATCH] adapt colouring for embedded NE's --- example.tsv | 2 +- ner.edith.html | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/example.tsv b/example.tsv index 85a4739..7b89ae7 100644 --- a/example.tsv +++ b/example.tsv @@ -12,7 +12,7 @@ No. TOKEN NE-TAG NE-EMB 1 Berlin B-LOC O 2 , O O -3 Berliner B-ORG O +3 Berliner B-ORG B-LOC 4 Tageblatt I-ORG O 5 . O O 6 Nr O O diff --git a/ner.edith.html b/ner.edith.html index e4174a9..d32a80f 100644 --- a/ner.edith.html +++ b/ner.edith.html @@ -55,14 +55,14 @@ row.append($("").text(cell)); }); $("#table tbody").append(row); - $("#table tr:contains('B-PER')").addClass('ner_per'); - $("#table tr:contains('I-PER')").addClass('ner_per'); - $("#table tr:contains('B-LOC')").addClass('ner_loc'); - $("#table tr:contains('I-LOC')").addClass('ner_loc'); - $("#table tr:contains('B-ORG')").addClass('ner_org'); - $("#table tr:contains('I-ORG')").addClass('ner_org'); - $("#table tr:contains('B-OTH')").addClass('ner_oth'); - $("#table tr:contains('I-OTH')").addClass('ner_oth'); + $("#table td:contains('B-PER')").addClass('ner_per'); + $("#table td:contains('I-PER')").addClass('ner_per'); + $("#table td:contains('B-LOC')").addClass('ner_loc'); + $("#table td:contains('I-LOC')").addClass('ner_loc'); + $("#table td:contains('B-ORG')").addClass('ner_org'); + $("#table td:contains('I-ORG')").addClass('ner_org'); + $("#table td:contains('B-OTH')").addClass('ner_oth'); + $("#table td:contains('I-OTH')").addClass('ner_oth'); }); } });