rikvn / drs_parsing Goto Github PK
View Code? Open in Web Editor NEWScripts to evaluate scoped meaning representations
License: MIT License
Scripts to evaluate scoped meaning representations
License: MIT License
Here are two DRSs that are identical except that the names of x2
and x3
are swapped:
gold.drs.txt
%%% This output was generated by the following command:
%%% bin/boxer --input out/p84/d2626/en.parse.tags --semantics drg --resolve --tense --instantiate --modal --theory sdrt --copula false --nn --elimeq --roles verbnet --integrate --warnings false --output out/p84/d2626/en.drs.clf
%%% ø Tom sat down beside her .
b1 REF x1 % Tom [0...3]
b1 Name x1 "tom" % Tom [0...3]
b1 male "n.02" x1 % Tom [0...3]
b2 REF e1 % sat [4...7]
b2 REF t1 % sat [4...7]
b2 Agent e1 x1 % sat [4...7]
b2 TPR t1 "now" % sat [4...7]
b2 Time e1 t1 % sat [4...7]
b2 sit_down "v.01" e1 % sat [4...7]
b2 time "n.08" t1 % sat [4...7]
% down [8...12]
b2 REF x3 % beside [13...19]
b2 Location e1 x3 % beside [13...19]
b2 SY1 x3 x2 % beside [13...19]
b2 location "n.01" x3 % beside [13...19]
b3 REF x2 % her [20...23]
b3 female "n.02" x2 % her [20...23]
% . [23...24]
pred.drs.txt
%%% This output was generated by the following command:
%%% bin/boxer --input out/p84/d2626/en.parse.tags --semantics drg --resolve --tense --instantiate --modal --theory sdrt --copula false --nn --elimeq --roles verbnet --integrate --warnings false --output out/p84/d2626/en.drs.clf
%%% ø Tom sat down beside her .
b1 REF x1 % Tom [0...3]
b1 Name x1 "tom" % Tom [0...3]
b1 male "n.02" x1 % Tom [0...3]
b2 REF e1 % sat [4...7]
b2 REF t1 % sat [4...7]
b2 Agent e1 x1 % sat [4...7]
b2 TPR t1 "now" % sat [4...7]
b2 Time e1 t1 % sat [4...7]
b2 sit_down "v.01" e1 % sat [4...7]
b2 time "n.08" t1 % sat [4...7]
% down [8...12]
b2 REF x2 % beside [13...19]
b2 Location e1 x2 % beside [13...19]
b2 SY1 x2 x3 % beside [13...19]
b2 location "n.01" x2 % beside [13...19]
b3 REF x3 % her [20...23]
b3 female "n.02" x3 % her [20...23]
% . [23...24]
This is the output of Counter:
WARNING: by using -ill dummy, ill-formed DRSs are replaced by a dummy DRS
## Matching clauses ##
b1 Name x1 "tom" % Tom [0...3] | b1 Name x1 "tom" % Tom [0...3]
b1 male "n.02" x1 % Tom [0...3] | b1 male "n.02" x1 % Tom [0...3]
b2 Agent e1 x1 % sat [4...7] | b2 Agent e1 x1 % sat [4...7]
b2 TPR t1 "now" % sat [4...7] | b2 TPR t1 "now" % sat [4...7]
b2 Time e1 t1 % sat [4...7] | b2 Time e1 t1 % sat [4...7]
b2 sit_down "v.01" e1 % sat [4...7] | b2 sit_down "v.01" e1 % sat [4...7]
b2 time "n.08" t1 % sat [4...7] | b2 time "n.08" t1 % sat [4...7]
b2 Location e1 x3 % beside [13...19] | b2 Location e1 x2 % beside [13...19]
b2 location "n.01" x3 % beside [13...19] | b2 location "n.01" x2 % beside [13...19]
b3 female "n.02" x2 % her [20...23] | b3 female "n.02" x3 % her [20...23]
## Non-matching clauses ##
b2 SY1 x3 x2 % beside [13...19] | b2 SY1 x2 x3 % beside [13...19]
## Clause information ##
Clauses prod : 11
Clauses gold : 11
## Main Results ##
Matching clauses: 10
Precision: 0.9091
Recall : 0.9091
F-score : 0.9091
## Detailed precision, recall, F-score ##
Prec, rec, F1 operators: 1.0, 1.0, 1.0
Prec, rec, F1 roles: 1.0, 1.0, 1.0
Prec, rec, F1 concepts: 0.8333, 0.8333, 0.8333
Prec, rec, F1 nouns: 1.0, 1.0, 1.0
Prec, rec, F1 verbs: 1.0, 1.0, 1.0
Prec, rec, F1 adjectives: 0.0, 0.0, 0.0
Prec, rec, F1 adverbs: 0.0, 0.0, 0.0
Prec, rec, F1 events: 1.0, 1.0, 1.0
Smart F-score concepts: 0.9091
## Restarts and processing time ##
Num restarts specified : 20
Found best mapping at restart: 0
Total processing time: 0.1026 sec
As can be seen in the matching clauses, x2 was correctly matched with x3, and vice versa. Nevertheless the SYM1 clause does not match. Is this a bug?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.