103 | | '''phrase-structure tree''' |
104 | | [[Image(http://www.fi.muni.cz/~xmedved1/strom_synt_zac.png)]] |
| 103 | '''phrase-structure tree'''[[BR]] |
| 104 | |
| 105 | [[Image(http://www.fi.muni.cz/~xmedved1/strom_synt_zac.png)]][[BR]][[BR]] |
| 106 | [[BR]] |
| 107 | |
| 108 | '''dependency graph'''[[BR]] |
| 109 | |
| 110 | [[Image(http://www.fi.muni.cz/~xmedved1/graph.png)]][[BR]] |
| 111 | [[BR]] |
| 112 | [[BR]] |
| 113 | '''syntactic structure'''[[BR]] |
| 114 | |
| 115 | {{{ |
| 116 | [0-7) : Tlačil auto, |
| 117 | tlačiť - V auto - N |
| 118 | Tlačil auto, |
| 119 | [2-4) : ktoré sa pokazilo |
| 120 | ktorý - PRON byť - PRON pokaziť - V |
| 121 | ktoré sa pokazilo. |
| 122 | }}} |
| 123 | |
| 124 | |
| 125 | == Commands == |
| 126 | The input for Synt parser is morphological annotated sentence (majka for Czech and RFTagger for Slovak) in vertical format. |
| 127 | To provide basic syntactic analysis: [[BR]] |
| 128 | |
| 129 | {{{ |
| 130 | cat sentence.vert | /nlp/projekty/syntax_sk/synt_sk/synt/synt -i vertical (Slovak) |
| 131 | cat sentence.vert | /nlp/synt/synt/synt -i vertical (Czech) |
| 132 | }}} |
| 133 | To provide syntactic analysis with phrase-structure tree output: [[BR]] |
| 134 | |
| 135 | {{{ |
| 136 | cat sentence.vert | /nlp/projekty/syntax_sk/synt_sk/synt/synt -i vertical -tt- | /nlp/projekty/set/set/TreeViewer/TreeViewer.py (Slovak) |
| 137 | cat sentence.vert | /nlp/synt/synt/synt -i vertical -tt- | /nlp/projekty/set/set/TreeViewer/TreeViewer.py(Czech) |
| 138 | }}} |