udeasy

Logo

A tool for querying CoNLL-U files

View the Project on GitHub unipv-larl/udeasy

How to use UDeasy

Download UDeasy

Go to the download page.

Run UDeasy

When you download the file that matches your platform, you can run the tool.

Ubuntu

When you download the .deb package, you can install the tool running:

sudo dpkg -i udeasy_x.y.z-v_amd64.deb

from the position where you downloaded the file.

MacOS

The app bundle you download is ready to be run. It may happen that you see a message from your computer saying that you should not run the program for security reasons, I assure you can run it without any security problem.

Windows

The executable file you download is ready to be run. It may happen that you see a message from your computer saying that you should not run the program for security reasons, I assure you can run it without any security problem.

Tutorial

Now we will see how to use UDeasy.

The main frame

When opening UDeasy, a window like the one in the picture appears.

main_frame

Clicking on the button Choose file, a file dialog opens and allows the user to navigate in the computer files. When the user selects the conllu file containing the treebank they want to query, the path to the selected file appears on the main frame. The user can now press on the Confirm button.

main_frame2

new in version 1.1.0

In case you try to load a treebank file that do not meet all the rules of CoNLL-U, a window will pop up describing the error that blocked the operation.

error_frame

Giving a name to the target nodes

When clicking on the Confirm button, the nodes panel appears. The user here is asked to give a name to the nodes that are involved in the patterns they want to get from the treebank.

nodes_panel

These names allow the user to refer to the target nodes in the next steps.

The user can now proceed to the next step clicking on the button Confirm.

new in version 1.0.0

It is now possible to include optional nodes in the query. To do so, just click the optional box in the corresponding node.

nodes_panel_optional

Selecting the features for each target node

In the panel that appears, the user can indicate one or more features that the target nodes involved in the pattern must match.

features_panel

The user can select any of the conllu fields (lemma, upos, deprel) or any of the sub-features that some conllu fields have such as feats and misc. For instance, in the figure above, the user has selected VerbForm, Gender and Case.

As values for the selected features, the user can either enter one or more values that have to be matched. If the user enters a value, then the feature must have that exact value for the node; if more values are passed, they have to be written between squared brackets and separated by commas. If the feature has one of those values, then the node is included in the results.

The user can also exclude from the results those nodes that match a certain value (or group of values) selecting the value is not option from the dropdown menu in between the feature menu and the feature value.

In the feature dropdown menu the user will find all the conllu field and some of the sub-features of feats and misc: if they want to look for a sub-feature not included in the menu, they can insert the value from the keyboard.

Specifying the relations among nodes

After the selection of the features, the user can specify the syntactic relations among the nodes.

relations_panel

The relations must involve only two nodes and the possible values for them are:

Specifying the relative positions among nodes

The last parameter the user might want to specify is the relative positions among the nodes.

positions_panel

As the relations, also the relative positions conditions must involve two nodes. If the user does not want to specify any ordering among the nodes, they can leave the fields empty. Otherwise, they must give a value for the first three fields, i.e. the nodes and the ordering relation (precedes or follows). In addition to that, they can specify a distance between the nodes selecting either by exactly or by at least in the fourth field and entering an integer number.

Visulizing the results

Before submitting the query, the user can select some visualization options such as conllu sentences, conllu matched nodes and trees: ticking the first box, the user will see in the results the conllu sentence that contains a target pattern; ticking the second box, the user will see in the results the conllu line for the matched nodes in the pattern (otherwise they will only see the word-forms); finally, ticking the third box, the user will see in the results the trees corresponding to the sentence containing a matched pattern.

Results

As a matter of example, we can see the results window that pops when the user clicks on the button Submit query.

results_window

In the menu, the user will see two items: File that will open a dropdown menu showing the Save as... option allowing the user to save the results as a txt file, and Stats that will show two options:

Statistics

menu_res

Preliminary statistics

Selecting the option Count results option in the Stats menu, the user will see a window popping up in the screen showing some preliminary statistics about the results.

count_res

Advanced statistics

Selecting the option Stats option in the Stats menu, the user will be allowed to select some information they want to get from the results of the query.

window_stats

The options are:

new in version 1.0.0

word_orders_stat

Example

stats_panel The stats panel

stats_res The results of the Word order and Distance queries

stats_res At the bottom of the page, the result of the Features distributions query

Exporting the results

From any window showing results (patterns or stats) it is possible to export the content to a txt file. To do so, just select the File > Save as… option in the menu and choose the path where to save the txt file.

new in version 1.1.0

It is also possible to export the results as csv files:

export_csv_frame