Giter Club home page Giter Club logo

drs_parsing's People

Contributors

dependabot[bot] avatar kovvalsky avatar mfa avatar rikvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drs_parsing's Issues

Bug in Counter? SY1, SY2 clauses don't match

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.