Skip to content

Commit

Permalink
Fixes spouse example's Mindtagger task
Browse files Browse the repository at this point in the history
and adds some sample data and tags
  • Loading branch information
netj committed Feb 16, 2016
1 parent a870377 commit 3cd4d15
Show file tree
Hide file tree
Showing 8 changed files with 504 additions and 22 deletions.
3 changes: 3 additions & 0 deletions examples/spouse/labeling/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mindtagger.conf.json
*.csv
tags.json
101 changes: 101 additions & 0 deletions examples/spouse/labeling/has_spouse-precision/has_spouse.csv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Labeling task for estimating has_spouse precision
items: {
file: has_spouse.csv
key_columns: [id, doc_id, sentence_index]
key_columns: [p1_id, p2_id]
}
template: template.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
SELECT id
SELECT p1_id
, p2_id
, s.doc_id
, s.sentence_index
, label
, expectation
, s.tokens
, pm1.mention_text
, pm2.mention_text
, pm1.begin_index AS p1_start
, pm1.end_index-pm1.begin_index + 1 AS p1_length
, pm2.begin_index AS p2_start
, pm2.end_index-pm2.begin_index + 1 AS p2_length
, pm1.mention_text AS p1_text
, pm1.begin_index AS p1_start
, pm1.end_index AS p1_end
, pm2.mention_text AS p2_text
, pm2.begin_index AS p2_start
, pm2.end_index AS p2_end

, f.features
, f.weights
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
SELECT id
SELECT p1_id
, p2_id
, s.doc_id
, s.sentence_index
, label
, expectation
, s.tokens
, pm1.mention_text
, pm2.mention_text
, pm1.begin_index AS p1_start
, pm1.end_index-pm1.begin_index + 1 AS p1_length
, pm2.begin_index AS p2_start
, pm2.end_index-pm2.begin_index + 1 AS p2_length
, pm1.mention_text AS p1_text
, pm1.begin_index AS p1_start
, pm1.end_index AS p1_end
, pm2.mention_text AS p2_text
, pm2.begin_index AS p2_start
, pm2.end_index AS p2_end

FROM has_spouse_label_inference hsi
, person_mention pm1
Expand Down
Loading

0 comments on commit 3cd4d15

Please sign in to comment.