normativeai / frontend

GNU General Public License v3.0
5 stars 3 forks source link

Operator "Permission if" #37

Open matteo-si opened 5 years ago

matteo-si commented 5 years ago

It seems to me that this operator does not recognize two terms as appropriate arguments, whereas it should

shaolintl commented 5 years ago

Hi Matteo, I just tried it out and it seems to work fine, can you confirm that you have annotated properly? What is the error message that you get?

matteo-si commented 5 years ago

No, I do not know why but it does not work: could you have a look at Article 45 in my IS theory to see whether I did something wrong?

shaolintl commented 5 years ago

I do not see such an article in IS Theory (Matteo)

matteo-si commented 5 years ago

because it cannot save it. Then try to annotate Article 45 in this way:

V1 (=>Pm)E1

shaolintl commented 5 years ago

@lex-lex

Matteo is right and there seems to be some problem with annotating this text.

(1) If the seller fails to perform any of his obligations under the contract or this Convention, the buyer may: (a) exercise the rights provided in articles 46 to 52; (b) claim damages as provided in articles 74 to 77. 14 United Nations Convention on Contracts for the International Sale of Goods

I try to mark the whole text as AND, the the (a) and (b) lines each as Permission If. Each of them contains then two terms. I get that the AND connective is then broken across different lines instead of spanning the whole text. See HTML sent to me for parsing.


<span class=\"connective-depth-1 annotator-connective\" id=\"ecc209e4-f5d4-4931-8efd-c0c952745db5\" data-connective=\"and\" title=\"And\">(1) If the seller fails to perform any of his obligations under the contract or this Convention, the buyer may:</span>
<span class=\"connective-depth-1 annotator-connective\" id=\"ecc209e4-f5d4-4931-8efd-c0c952745db5\" data-connective=\"and\" title=\"And\">
  <span class=\"connective-depth-2 annotator-connective\" id=\"457a703d-e4a9-4e31-8344-3aae9cb1704c\" data-connective=\"pmif\" title=\"Permission If\">
    <span class=\"annotator-term\" id=\"3e58bb83-df5e-41fe-a335-b268df3ec63d\" data-term=\"v1\" title=\"v1\">(a) </span>
    <span class=\"annotator-term\" id=\"20912119-ca57-41ee-9a18-ccbec1e6eabd\" data-term=\"e1\" title=\"e1\">exercise the rights provided in articles 46 to 52;</span>
  </span>
</span>
<span class=\"connective-depth-1 annotator-connective\" id=\"ecc209e4-f5d4-4931-8efd-c0c952745db5\" data-connective=\"and\" title=\"And\">
  <span class=\"connective-depth-2 annotator-connective\" id=\"ec9ab9d0-29bc-42c3-8d54-ff3eef8dd77a\" data-connective=\"pmif\" title=\"Permission If\">
    <span class=\"annotator-term\" id=\"c80a1f6e-21cf-4a9a-b82a-4e2d2b7ec9b6\" data-term=\"v1\" title=\"v1\">(b) </span>
    <span class=\"annotator-term\" id=\"db287e14-7166-47ee-a4f1-ad2da84d3a2f\" data-term=\"e2\" title=\"e2\">claim damages as provided in articles 74 to 77. 14 United Nations Convention on Contracts for the International Sale of Goods</span>
  </span>
</span>
shaolintl commented 5 years ago

In general, I dont manage to span an AND across several lines over this text. It always break it into separate AND clauses.

shaolintl commented 5 years ago

@lex-lex Can you send us a quick-fix for that? I.e. not to try to span an AND across some other tags?

lex-lex commented 5 years ago

Nope, no quick fix available. Annotations cannot (currently) span over several block elements (that is list items, paragraphs, etc.).