## page was renamed from ICARUS-Matetools-Parser = ICARUS-Matetools-Parser-perspective = The {{attachment:matetools_perspective.png}} perspective provides a GUI to use the [[http://www.ims.uni-stuttgart.de/forschung/ressourcen/werkzeuge/matetools.html|mate-tools]] parsing pipeline. [[ICARUS|{{attachment:navi_up.png|Back to ICARUS Main Page}}]][[extern/ICARUS|Back to ICARUS Main Page]] <> == Index: == I. [[#how-to-parse|How to parse a text/sentence]] I. [[#mt-graph-list-outline|Graph-List Outline]] I. [[#table-outline|Table Outline]] I. [[#parser-input|Parser Input]] <> === I. How to parse a text/sentence: === Video Download: * [[http://clarin01.ims.uni-stuttgart.de/icarus/tutorial_matetools.mp4|tutorial_matetools.mp4]] * [[http://clarin01.ims.uni-stuttgart.de/icarus/tutorial_matetools.ogv|tutorial_matetools.ogv]] 1. Copy the prefered text/sentence into the "Parser Input Field". * {{attachment:matetools_parserinput.png}} 1. Select the desired model set * If the parsing model is already specified continue with 3.) * To create a new parsing model click on {{attachment:matetools_preferences.png}} This will open the matetools preferences dialog [[attachment:matetools_preferences_dialog.png|{{attachment:matetools_preferences_dialog.png||height="200"}}]] * Click "New" to create a new model, edit or delete to manage existing models. Example model (edit mode): {{attachment:matetools_model_edit.png||align="top"}} * Note: In this example we have no moprh-tagger model set. This works because the "Use Morph Tagger" Option above is unchecked. * Specify the parser-, tagger-, lemmatizer- and morph-tagger-model * After setting up the model it can be used by clicking on the model set dropdown menu. 1. Select the tokenizer. The default tokenizer use whitespace to split the sentence into tokens. 1. Click on {{attachment:matetools_parse.png}} to parse the text/sentence. 1. The resulting parse tree of this example is shown here: [[attachment:matetools_example.png|{{attachment:matetools_example.png||height="200"}}]] [[#icarus-mt-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-mt-index|Back to index]] <> === II. Graph-List Outline === {{attachment:matetools_graph-outline.png}} This tab is used to show the parse tree: '''Graph-List Outline Toolbar:''' {{attachment:matetools_graph-outline-tb.png}} * {{attachment:preferences.png}} = Open the preferences * {{attachment:arc-layout.png}} = Change the current graph layout. There are three different layout types available {{attachment:qe_layouts.png||align="middle"}} 1. Arc layout {{attachment:qe_arc-layout.png||align="middle"}} 1. No layout {{attachment:qe_no-layout.png||align="middle"}} 1. Tree {{attachment:qe_tree-layout.png||align="middle"}} * {{attachment:clear.png}} = Clear graph panel - every nodes/edges are deleted * {{attachment:export.png}} = Save the current search graph to XML file (may be imported later) * {{attachment:import.png}} = Import a search graph XML file * {{attachment:print.png}} = Print the current graph * {{attachment:add-node.png}} = Add a new node to the current search graph * {{attachment:add-edge.png}} = Connects two nodes (two nodes must be selected before this action can be performed) * {{attachment:add-pedge.png}} = Connects two nodes with a precedence relation (two nodes must be selected before this action can be performed) * {{attachment:delete.png}} = Delete selected node/edge (multi selection possible) * {{attachment:edit.png}} = Open the edit node/edge dialog (Instead of using this button you may doubleclick a node/edge to open the edit dialog) * {{attachment:clone.png}} = Duplicate (copy and insert) the selected nodes/edges. Quick way to duplicate a graph. Note: edges are only copied when their source and target node is selected. * {{attachment:copy_button.png}} = Copy and the selected nodes/edges. Note: edges are only copied when their source and target node is selected. (strg+c) * {{attachment:paste_button.png}} = Paste previously copied nodes/edges. (strg+p) * {{attachment:reorder-graph.png}} = Redraw the graph, can be useful while adding new nodes, edges or constraints may mess up the graph layout. Example (arc-layout): (left nodes/edges unsorted; right nodes/edges reorderes) {{attachment:graph-redraw.png||align="middle"}} * {{attachment:undo.png}} = Undo the last graph editor operation * {{attachment:redo.png}} = Redo the last graph editor operation * {{attachment:zin.png}} = Increase zoom level * {{attachment:zdefault.png}} = Switch back to the default zoom level * {{attachment:zout.png}} = Decrease zoom level * {{attachment:zauto.png}} = Autofit zoom level to the current graph panel size (default off) * {{attachment:zcompress.png}} = Compress graph (right-left). Merge node/edge information into a node. Search annotation highlight is never merged and always visible. (default off) * {{attachment:hl_inedge.png}} = Highlight the incoming edge of the selected node (multiselection possible) (default off) * {{attachment:hl_outedge.png}} = Highlight the outgoing edge/edges of the selected node (multiselection possible) (default off) * Example where the node "son" is selected and highlight is switched on for incoming and outgoing edges {{attachment:hl_example.png||align"middle"}} Note: It is possible to navigate through a graph (after selecting at least one node/edge) using the "arrow keys" * {{attachment:matetools_tb-unused.png}} = unused right now At the lower part of the graph panel is the text outline. A list that contains all sentences that have been parsed in the current matetools session. The selected sentence is shown in the graph panel. '''Toolbar:''' {{attachment:text-tb.png}} * {{attachment:text_outline.png}} = Toggle a textpanel to copy the selected sentence. (see below) * {{attachment:text_outline-on.png}} * {{attachment:item-first.png}} = First sentence * {{attachment:item-previous.png}} = Previous sentence * {{attachment:sentence-nr.png}} = Shows the current selected sentence (first number) and the total sentences (last number). In the example figure sentence 2 of 3 is selected. The user may navigate using the arrows to the left/right. It is possible to enter the sentence no. in this field by pressing "return" the sentence pops up. Note that the sentence numbers belong to the the internal index (the corpus index may differ for example if one sentence number have been skipped) * {{attachment:item-next.png}} = Next sentence * {{attachment:item-last.png}} = Last sentence [[#icarus-mt-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-mt-index|Back to index]] <> === III. Table Outline === [[attachment:matetools_table-outline.png|{{attachment:matetools_table-outline.png||height="150"}}]] A table representation of the graph shown in the Graph-List outline. [[#icarus-mt-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-mt-index|Back to index]] <> === IV. Parser Input === {{attachment:matetools_parserinput.png}} '''Toolbar:''' {{attachment:matetools_parserinput-tb.png}} * {{attachment:undo.png}} = Undo the last operation * {{attachment:redo.png}} = Redo the last operation * {{attachment:cut_button.png}} = Cut the selected text * {{attachment:copy_button.png}} = Copy and the selected text. (strg+c) * {{attachment:paste_button.png}} = Paste previously copied text. (strg+p) * {{attachment:select_all.png}} = Select all text within the parser input panel * {{attachment:clear.png}} = Clear parser input panel [[#icarus-mt-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-mt-index|Back to index]]