xmg-webgui's People
xmg-webgui's Issues
save & compile without reload
This has many benefits, e.g., the undo history of codemirror is not deleted.
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...)
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
viewer: number of entries does not update when applying filter
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).
change link: "Parser"
update navigation bar to include tulipa link
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.
XTAG: show tree families
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).
viewer: syntax area is shown even if the syntax dimension is empty
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">
Move navigation bar from view files to single file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.