Commit 8a55a15c authored by sebastien curt's avatar sebastien curt

Deeper analysis for issue 12 -> test all sentences of unl source.

-> sentence 3 contains a reference to graph ":02". But the attribute @entry is missing for node ":02"
parent 860786e9
Pipeline #220 failed with stage
in 1 minute and 5 seconds
......@@ -16,7 +16,7 @@ public class SubGraphReferenceNode extends GraphNode {
}
public String getNodeId() {
return null;
return referenceNumber;
}
public String getReferenceNumber() {
......
......@@ -4,16 +4,17 @@ import fr.tetras_libre.unltools.unl.UniversalWord;
import fr.tetras_libre.unltools.unl.UniversalWordNode;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.function.Function;
import java.util.function.Supplier;
public class UniversalWordNodeBuilder {
private final HashSet<String> attributes;
private final LinkedHashSet<String> attributes;
private UniversalWord universalWord;
private String instanceNumber;
private UniversalWordNodeBuilder() {
this.attributes = new HashSet<>();
this.attributes = new LinkedHashSet<>();
this.instanceNumber = "";
}
......
......@@ -117,40 +117,40 @@ public class UnlSentences {
"mod(train(icl>public_transport>thing),:03.@_hn-scope)\n" +
"{/unl}\n" +
"[/S]\n" +
// "[S:00]\n" +
// "{org:en}\n" +
// "The document primarily defines the operational requirements and therefore contains only a few technical terms.\n" +
// "{/org}\n" +
// "{unl}\n" +
// "aoj(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,document(icl>writing>thing).@def)\n" +
// "man(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,primarily(icl>how,equ>mainly))\n" +
// "and(:01,define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present)\n" +
// "mod(requirement(icl>duty>thing).@def.@pl,operational(icl>adj,com>operation))\n" +
// "obj(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,requirement(icl>duty>thing).@def.@pl)\n" +
// "man:01(contain(icl>be,equ>comprise,obj>abstract_thing,aoj>information,pur>abstract_thing).@entry.@present,therefore(icl>how))\n" +
// "man:01(term(icl>word>thing,mod>thing).@pl,only(icl>how,equ>recently))\n" +
// "qua:01(term(icl>word>thing,mod>thing).@pl,a_few(icl>adj,equ>some,qua<thing))\n" +
// "mod:01(term(icl>word>thing,mod>thing).@pl,technical(icl>adj,ant>nontechnical))\n" +
// "obj:01(contain(icl>be,equ>comprise,obj>abstract_thing,aoj>information,pur>abstract_thing).@entry.@present,term(icl>word>thing,mod>thing).@pl)\n" +
// "{/unl}\n" +
// "[/S]\n" +
// "[S:00]\n" +
// "{org:en}\n" +
// "For consistency reasons, all functional requirements not implemented in the SRS 2.3.0 have been removed from this version..\n" +
// "{/org}\n" +
// "{unl}\n" +
// "agt:01(reason(icl>persuade>do,agt>thing,gol>uw,rec>person).@entry.@present,consistency(icl>uniformity>thing,ant>inconsistency))\n" +
// "qua:02(requirement(icl>duty>thing).@pl,all(icl>quantity,ant>some,per>thing))\n" +
// "mod:02(requirement(icl>duty>thing).@pl,functional(icl>adj,ant>nonfunctional))\n" +
// "agt:02(implement(icl>employ>do,agt>thing,obj>thing).@past.@not,requirement(icl>duty>thing).@pl)\n" +
// "plc(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,srs.@def)\n" +
// "obj(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,\"2.3\".@topic)\n" +
// "mod(\"2.3\".@topic,\".0\")\n" +
// "mod(version(icl>interpretation>abstract_thing,agt>thing,obj>uw),this(icl>determiner>adj,mod<concrete_thing))\n" +
// "plf(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,version(icl>interpretation>abstract_thing,agt>thing,obj>uw))\n" +
// "and(implement(icl>employ>do,agt>thing,obj>thing).@past.@not,:01)\n" +
// "rsn(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,:02)\n" +
// "{/unl}\n" +
// "[/S]\n" +
"[S:00]\n" +
"{org:en}\n" +
"The document primarily defines the operational requirements and therefore contains only a few technical terms.\n" +
"{/org}\n" +
"{unl}\n" +
"aoj(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,document(icl>writing>thing).@def)\n" +
"man(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,primarily(icl>how,equ>mainly))\n" +
"and(:01,define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present)\n" +
"mod(requirement(icl>duty>thing).@def.@pl,operational(icl>adj,com>operation))\n" +
"obj(define(icl>characterize>be,obj>uw,aoj>thing).@entry.@present,requirement(icl>duty>thing).@def.@pl)\n" +
"man:01(contain(icl>be,equ>comprise,obj>abstract_thing,aoj>information,pur>abstract_thing).@entry.@present,therefore(icl>how))\n" +
"man:01(term(icl>word>thing,mod>thing).@pl,only(icl>how,equ>recently))\n" +
"qua:01(term(icl>word>thing,mod>thing).@pl,a_few(icl>adj,equ>some,qua<thing))\n" +
"mod:01(term(icl>word>thing,mod>thing).@pl,technical(icl>adj,ant>nontechnical))\n" +
"obj:01(contain(icl>be,equ>comprise,obj>abstract_thing,aoj>information,pur>abstract_thing).@entry.@present,term(icl>word>thing,mod>thing).@pl)\n" +
"{/unl}\n" +
"[/S]\n" +
"[S:00]\n" +
"{org:en}\n" +
"For consistency reasons, all functional requirements not implemented in the SRS 2.3.0 have been removed from this version..\n" +
"{/org}\n" +
"{unl}\n" +
"agt:01(reason(icl>persuade>do,agt>thing,gol>uw,rec>person).@entry.@present,consistency(icl>uniformity>thing,ant>inconsistency))\n" +
"qua:02(requirement(icl>duty>thing).@pl,all(icl>quantity,ant>some,per>thing))\n" +
"mod:02(requirement(icl>duty>thing).@pl,functional(icl>adj,ant>nonfunctional))\n" +
"agt:02(implement(icl>employ>do,agt>thing,obj>thing).@past.@not,requirement(icl>duty>thing).@pl)\n" +
"plc(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,srs.@def)\n" +
"obj(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,\"2.3\".@topic)\n" +
"mod(\"2.3\".@topic,\".0\")\n" +
"mod(version(icl>interpretation>abstract_thing,agt>thing,obj>uw),this(icl>determiner>adj,mod<concrete_thing))\n" +
"plf(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,version(icl>interpretation>abstract_thing,agt>thing,obj>uw))\n" +
"and(implement(icl>employ>do,agt>thing,obj>thing).@past.@not,:01)\n" +
"rsn(remove(icl>dismiss>do,plf>thing,agt>volitional_thing,obj>person).@entry.@present.@complete,:02)\n" +
"{/unl}\n" +
"[/S]\n" +
"[/D]";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment