neleval prepare-tac
¶
Convert TAC output format for evaluation
Usage summary¶
$ neleval prepare-tac --help
usage: neleval prepare-tac [-h] -q QUERIES [-x EXCLUDED_SPANS] [-m MAPPING]
FILE
Convert TAC output format for evaluation
queries file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<kbpentlink>
<query id="doc_01">
<name>China</name>
<docid>bolt-eng-DF-200-192451-5799099</docid>
<beg>2450</beg>
<end>2454</end>
</query>
</kbpentlink>
links file looks like:
doc_01 kb_A GPE 0.95
positional arguments:
FILE link annotations
optional arguments:
-h, --help show this help message and exit
-q QUERIES, --queries QUERIES
mention annotations
-x EXCLUDED_SPANS, --excluded-spans EXCLUDED_SPANS
file of spans to delete mentions in
-m MAPPING, --mapping MAPPING
mapping for titles