Coder Social home page Coder Social logo

xmg-webgui's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xmg-webgui's Issues

Frame hierarchy is not taken into account in XMG WebGUI

Scenario: Parsing a sentence in the XMG WebGUI parser that is supposed to be blocked by the frame type hierarchy, e.g. "the fence jumped".
Behavior: The viewer shows a frame for this sentence where the subject has two types that are specified in the frame type hierarchy to be incompatible.
Expected behavior: The parser should not generate a tree and frame for this sentence because the types "physical_object" and "animate" are specified in the frame type hierarchy to be incompatible.

The same grammar files and type hierarchy lead to the correct behavior in the XMG Ubuntu VM - the sentence is blocked, with the output:

Incompatible types: [physical_object-fence] and [animate-entity]
Frame unification failed, tree discarded

Included:

  • Screenshot from XMG WebGUI output for "the fence jumped"
  • Screenshot from Tulipa output in XMG Ubuntu VM for "the fence jumped"
  • .mg files and .xml files with a minimal working example metagrammar illustrating the issue (renamed to .mg.txt and .xml.txt to circumvent GitHub's restriction for file uploads...)

the_fence_jumped_webgui
the_fence_jumped_xmgvm
frame_dimension.mg.txt
frame_dimension.xml.txt
lemma.mg.txt
lemma.xml.txt
morph.mg.txt
morph.xml.txt
syn_dimension.mg.txt
syn_dimension.xml.txt

XML with atomic disjunctions in feature structures

I realised that the viewer crashes when seeing atomic disjunctions as values of features, as in the following feat for example:

               <f name="mode">
                  <vAlt coref="@AD4">
                    <sym value="ind"/>
                    <sym value="subj"/>
                  </vAlt>
                </f>

The error is apparently in xmgview.js, line 423:

value.setAttribute("x", maxlengthFeatures + 10); //padding

Show interfaces

The dimension is not displayed yet by the viewer. It would just be an additional feature structure, but I am not sure where it should be shown (directly next to the tree or in its own screen section).

Frames stop being displayed

In a grammar with trees and frames, if some of the entries contain no frame, their selection cause the frames of the other entries to be ignored.
As long as entries with tree+frame are selected, the display works fine, it is only when a tree-no_frame entry is selected that frames stopped being displayed.

use randomly named folders

Files are stored in folders with random name. Their name can be used as permanent identifier of projects.
This also enables one to upload and edit larger projects consisting of several files.

No tree display when no frame dimension

When no frame description is given, the viewer does not display the entry.
To be more precise, an xml with:

...
</tree>
<frame/>
<interface>
...

displays an empty frame while one with the following crashes:

...
</tree>
<interface>
...

Fixing this should allow to see all the grammars created with XMG1 (the syntactic part at least).

viewer: rearrange start screen

Before clicking on a button on the left pane in order to view the corresponding solution, information about the metagrammar should be included within the content frame, if available.

Public metagrammars

It would be nice to have a page where all publicly available metagrammars are listed. It could be only a list of links to repositories or the actual grammars directly viewable/editable through the WebGUI (a bit like what is now done for XTAG).

Show predicate semantics

Prints the predicate semantics when provided (in the frame box). Example:

    <semantics>
      <literal negated="no">
        <label>
          <sym value="@V18"/>
        </label>
        <predicate>
          <sym varname="@V19"/>
        </predicate>
        <arg>
          <sym varname="@V4"/>
        </arg>
        <arg>
          <sym varname="@V17"/>
        </arg>
      </literal>
    </semantics>

Show node names

Prints the name (property) of nodes when provided:
<node type="foot" name="Sf">

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.