-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
966 lines (848 loc) · 66.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
<!DOCTYPE html>
<html>
<!--
This library is under the 3-Clause BSD License
Copyright (c) 2018-2024, Orange S.A.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
author Johannes Heinecke
version 2.28.0 as of 6th October 2024
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CoNLL-U Editor</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<!--link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" -->
<link rel="stylesheet" type="text/css" href="lib/bootstrap-4.1.3/css/bootstrap.min.css" />
<!--script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css"></script-->
<link rel="stylesheet" type="text/css" href="lib/jquery-ui-1.12.1/jquery-ui.min.css" />
<link rel="stylesheet" type="text/css" href="table.css" />
<link rel="stylesheet" type="text/css" href="depgraph.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="shortcut icon" type="image/x-icon" href="img/orange.ico">
<script type="text/javascript" src="./lib/jquery-3.3.1.min.js"></script>
<!--script type="text/javascript" src="./lib/jquery-3.6.0.min.js"></script-->
<!--script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" -->
<script src="lib/popper.min.js"></script>
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script-->
<script src="lib/bootstrap-4.1.3/js/bootstrap.min.js"></script>
<!--script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script-->
<script type="text/javascript" src="./lib/jquery-ui-1.12.1/jquery-ui.min.js" ></script>
<!--script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script-->
<script src="./sorttable.js"></script>
<!--script src="https://www.kryogenix.org/code/browser/sorttable/sorttable.js"></script-->
<script src="./word.js" type="text/javascript"></script>
<script src="./dependency-tree.js" type="text/javascript"></script>
<script src="./dependency-flat.js" type="text/javascript"></script>
<script src="./table.js" type="text/javascript"></script>
<script src="./edit.js" type="text/javascript"></script>
<link href="https://fonts.googleapis.com/css?family=Lato:wght@300;400&display=swap" rel="stylesheet">
</head>
<body>
<div id="header">
<table border="0" cellpadding="0" cellspacing="10">
<tr>
<td colspan="1">
<span class="sentinfo">filename:</span> <span onmousedown="filestats();" id="filename">(conllu-filename)</span>
<span id="mode"></span>
<span class="sentinfo"> changes: </span> <span class="editmode" id="changespendingsave">0</span>
<span class="sentinfo" id="psc"> pending shortcuts: </span> <span class="editmode" id="pendingshortcuts"></span>
</td>
<!--td rowspan="2" width="200" id="logo" title="?" >
<svg viewBox="0 0 130 55" transform="scale(1 1) translate(0 0)">
<use xlink:href="img/ce2.svg#svg2"></use>
</svg>
</td-->
</tr>
<tr>
<td colspan="1">
<span class="contain"><button class="editbuttons mybutton" id="undo"> </button> <!-- ↺ --></span>
<span class="contain"><button class="editbuttons mybutton" id="redo"> </button> <!-- ↻ --></span>
<button class="editbuttons mybutton" id="lire">read sentence</button>
<input type="text" id="sentid" class="inputfield" pattern="[1-9][0-9]*" size="4" value="1" >
<span class="contain"><button class="editbuttons mybutton" id="first"> </button> <!-- |< --></span>
<span class="contain"><button class="editbuttons mybutton" id="prec"> </button> <!-- << --></span>
<span class="contain"><button class="editbuttons mybutton" id="next"> </button> <!-- >> --></span>
<span class="contain"><button class="editbuttons mybutton" id="last"> </button> <!-- >| --></span>
<button class="mycheck mybutton" id="feat2" title="show morpho-syntactic features">features</button>
<button class="mycheck mybutton" id="misc2" title="show contents of MISC column">misc</button>
<!--button class="mycheck mybutton" id="flat2">flat graph</button-->
<span class="oomybutton dewis">
<select id="flat3">
<option value="tree" selected>tree graph</option>
<option value="flat">flat graph</option>
<option value="table">table view</option>
</select>
</span>
<button class="mycheck mybutton" id="r2l" title="activate for sentences in Arabic or Hebrew script">right to left</button>
<!--button class="mycheck mybutton" id="extracols" title="show contents of columns > 10">extra cols</button-->
<button class ="editbuttons mybutton editmode" title="save file before min edits are reached (option --saveAfter)" id="save">save changes</button>
<button type="button" class="help mybutton" data-toggle="modal" data-target="#helpModal">help</button>
<!--button class="mybutton" id="act_search" style="width:130" onmousedown="ToggleSearch();" title="hide/show search fields">toggle search modes</button-->
<span class="dewisl dewis">
<select id="searchmode">
<option value="simple" selected>simple search</option>
<option value="complex">search & replace</option>
<option value="grew">grew match</option>
<option value="hide">hide search</option>
</select>
</td>
</tr>
<tr class="search">
<td colspan="1">
<!--span class="resizable-input"-->
<input class="inputfield searchfield" placeholder="find form (string)" title="string (with or without ")" type="text" id="word" value="">
<!--/span-->
<!--textarea style="resize: horizontal;" cols="10" rows="1" class="inputfield searchfield" placeholder="find form (string)" title="string (with or without ")" type="text" id="word" value=""></textarea-->
<span class="contain"><button class="editbuttons mybutton go" id="findword"> </button></span>
<input class="inputfield searchfield" placeholder="find lemma (regex/...)" title="regex[/regex/...]" type="text" id="lemma" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findlemma"> </button></span>
<input class="inputfield searchfield" placeholder="find upos (regex/...)" title="regex[/regex/...]" type="text" id="upos" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findupos"> </button></span>
<input class="inputfield searchfield" placeholder="find xpos (regex/...)" title="regex[/regex/...]" type="text" id="xpos" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findxpos"> </button></span>
<input class="inputfield searchfield" placeholder="find deprel (regex/...)" title="regex of deprels (separated by > or < in order to find a branch)" type="text" id="deprel" value="">
<span class="contain"><button class="editbuttons mybutton go" id="finddeprel"> </button></span>
<input class="inputfield searchfield" placeholder="find feature (name:regex/...)" title="name:regex of feature" type="text" id="featureval" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findfeature"> </button></span>
<span class="contain"><button class="mybutton mycheck" title="search backwards" id="backwards"> </button></span>
</td>
</tr>
<tr class="search">
<td colspan="1">
<input class="inputfield searchfield" placeholder="find any ([fluxde]:regex)" title="column:regex[%column:regex][/...]" type="text" id="multifield" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findmulti"> </button></span>
<input class="inputfield searchfield" placeholder="find comment (string)" title="regex" type="text" id="comment" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findcomment"> </button></span>
<input class="inputfield searchfield" placeholder="find sent-id (regex)" title="regex" type="text" id="sentenceid" value="">
<span class="contain"><button class="editbuttons mybutton go" id="findsentid"> </button></span>
<span class="contain"><button class="mybutton mycheck" title="clear all search fields" id="clear"> </button></span>
<button class="mycheck mybutton onlywithenhanced" id="bie">show basic in enhanced</button>
<button class="mycheck mybutton onlywithenhanced" id="edit_ed">edit enhanced deps</button>
</td>
</tr>
<tr class="search">
<td colspan="1">
<span id="portinfo">Port <input type="text" id="port" size="2" value="12345"></span>
<button class="mybutton mycheck onlyWithTree" id="adaptwidth" title="variable word widths in function of word length">fixed width</button>
<span id="widthinfo">
Width <input class="inputfield" type="text" id="bwidth" size="2" value="90">
Height <input class="inputfield" type="text" id="bheight" size="2" value="50">
</span>
<span class="editmode"><button class="mybutton editbuttons onlyWithTree" id="modifier">modify</button>
<input placeholder="modify commands (see help)" class="onlyWithTree inputfield" type="text" id="mods" size="15" value="">
</span>
<!--/td>
</tr>
<tr class="search">
<td colspan="1" -->
<button class ="mybutton onlyWithTree" id="valid">validation</button>
<a class="onlyWithTree" id="a2" download="arbre.svg" type="image/svg+xml"><button class="mybutton">download image</button></a>
<button class ="onlyWithTree mybutton" id="latex"><span class="latex">L<sup>a</sup>T<sub>e</sub>X</span></button>
<button class ="onlyWithTree mybutton" id="conllu">CoNLL-U</button>
<button class ="onlyWithTree mybutton" id="sdparse">SD-Parse</button>
<button class ="onlyWithTree mybutton" id="json">JSON (Spacy)</button>
<button class ="onlyWithTree mybutton" id="editmetadata">edit metadata</button>
</td>
</tr>
<tr id="shortcuthelp"><td colspan="1">
<!-- tables with shortcuts (invoked with key "?" -->
<!--table id="shortcuttable">
<tr><td class="sc">shortcuts</td> <td id="scfilename" class="sc_help_td"></td></tr>
<tr><td class="sc" id="upostr">UPOS</td><td id="uposshortcuts" class="sc_help_td"></td></tr>
<tr><td class="sc" id="xpostr">XPOS/UPOS</td><td id="xposshortcuts" class="sc_help_td"></td></tr>
<tr><td class="sc" id="depreltr">Deplabel</td><td id="deplshortcuts" class="sc_help_td"></td></tr>
<tr><td class="sc" id="featstr">Features</td><td id="featsshortcuts" class="sc_help_td"></td></tr>
<tr><td class="sc" id="miscstr">MISC</td><td id="miscshortcuts" class="sc_help_td"></td></tr>
</table-->
<div id="multishortcutlist"></dv>
</td></tr>
<tr id="searchandreplace"><td>
<div>
<input class="inputfield" placeholder="Upos:NOUN and Deprel:obj and head(Feat:Tense:Pres)" title="find expression" size="70" type="text" id="searchexpression" value="">
<button class="editbuttons mybutton" id="searchgo">search</button>
</div>
<div>
<input class="inputfield" placeholder="replace expression" title="replace expression" size="70" type="text" id="replaceexpression" value="">
<button class="editbuttons mybutton" id="replacego">search & replace</button>
</div>
</td></tr>
<tr id="grewmatchsearchandreplace"><td>
<div>
<input class="inputfield" placeholder="pattern {N [upos=NOUN]} without {V -[nsubj]-> N}" title="grewmatch pattern" size="70" type="text" id="grewmatchsearchexpression" value="">
<button class="editbuttons mybutton" id="grewmatchsearchgo">grewmatch search</button>
</div>
<!--div>
<input class="inputfield" placeholder="replace expression" title="replace expression" size="70" type="text" id="replaceexpression" value="">
<button class="editbuttons mybutton" id="replacego">search & replace</button>
</div-->
</td></tr>
<tr id="subtreesearch"><td>
<textarea rows="4" class="inputfield" title="subtree" type="text" id="editsubtree"># ***Legacy, will be withdrawn in a future version!
# global.columns = ID	FORM	LEMMA	UPOS	XPOS	FEATS	HEAD	DEPREL
#1	_	_	_	_	_	0	_
#2	_	_	_	_	_	1	_
</textarea>
<div id="subtrees" style="display:inline-block">
<div>
<span class="contain">
<button class="editbuttons mybutton go" id="findsubtree"> </button>
</span>
</div>
<div style="margin-top: 20%;">
<input class="inputfield" type="text" id="subtreeroot" placeholder="subtree root id" title="id of the word which should become the root of the subtree subtree" size="2">
</div>
<div>
<button class="editbuttons mybutton" id="createsubtree">import subtree</button>
</div>
</div>
</td></tr>
</table>
<div id="sentencetext">
<span class="sentinfo" id="currentsent">1</span>/<span class="sentinfo" id="total"></span>: <span id="titre"></span>
<span class="sentinfo" id="cursentid"></span>
<div class="sentinfo" id="scores"></div>
<span class="sentinfo" id="errors"></span>
</div>
<div id="compare">
<table>
<tr class="comparediff" id="goldword"></tr>
<tr class="comparediff" id="editedword"></tr>
</table>
</div>
</div>
<div id="arbre"></div>
<div id="comm" style="display: flex;">
<div style="padding: 5px"><button class="onlyWithTree mybutton" id="editcommentbutton">edit comment</button></div>
<div><span style="white-space: pre-wrap" id="commentfield"></span></div>
</div>
<!-- the following are the dialogue/help popups -->
<div class="modal" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="helpModalLabel">Help</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h1>How to edit CoNLL-U files</h1>
<h2>Navigating</h2>
Click <span class="buttondoc">read sentence</span> to load the sentence with the number given in the entry field to the right of the button.
The buttons <img class="helptextbutton" src="img/preceding.svg"> and
<img class="helptextbutton" src="img/following.svg"> change to the preceding/next sentence
(also <span class="keydoc">-</span> and <span class="keydoc">+</span> keys),
use <img class="helptextbutton" style="width: 30px;" src="img/Start.svg"> and
<img class="helptextbutton" style="width: 30px;" src="img/End.svg"> to go to the first/last sentence.
<h2>Editing</h2>
<b>make a dependency</b>: click first on the dependent and then on its new head. Clicking twice on a node makes it root
<br><b>modify the dependency relation</b>: left-click on the relation label
<br><b>modify the word (form, lemma, upos, xpos, ...)</b>: <span class="keydoc">control</span>-left-click or double-click on the node to modify
<br><b>delete the word</b>: hit <span class="keydoc">delete</span>-key. Any overlapping MWT will also be deleted
<br><b>edit a multi-token word</b>: click on the grey bar spanning the words (to change start token, a new MWT has to be created). Setting the end token to 0 deletes the multiword token.
the <span class="userinputdoc">compose <i>id length</i></span> command allows to add new MW tokens.
<br><br>or use a command and hit the <span class="buttondoc">modify</span> button (replace the parts in <span class="userinputdoc"><i>italic</i></span> with the the new values):
<!-- class="helpstyle" ici pour mettre les meme font-size (jquery-ui fait ça différemment -->
<table border ="0" class="bhelpstyle">
<tr><td>• <span class="userinputdoc"><i>dep_id newheadid</i></span> [<span class="userinputdoc"><i>deprel</i></span>]</td>
<td>attach <i>dep_id</i> to <i>newheadid</i> with the relation <i>deprel</i></td>
</tr>
<tr><td>• <span class="userinputdoc">xpos <i>dep_id XPOS</i></span></td>
<td>set xpos of word <i>id</i> to XPOS</td>
</tr>
<tr><td>• <span class="userinputdoc">upos <i>dep_id UPOS</i></span></td>
<td>set upos of word <i>id</i> to UPOS</td>
</tr>
<tr><td>• <span class="userinputdoc">lemma <i>dep_id LEMMA</i></span></td>
<td>modify lemma of word <i>id</i></td>
</tr>
<tr><td>• <span class="userinputdoc">feat <i>dep_id feature=value,...</i></span></td>
<td>modify features of word <i>id</i></td>
</tr>
<tr><td>• <span class="userinputdoc">enhdeps <i>dep_id head:deprel,...</i></span></td>
<td>modify enhanced dependencies of word <i>id</i></td>
</table>
<br>other commands for <span class="buttondoc">modify</span> (no graphical equivalent) :
<table border ="0" class="bhelpstyle">
<tr><td width="440px">• <span class="userinputdoc">split <i>id</i> [<i>splitpos</i>]</span></td> <td>split a word in two
(it will be copied to a new node and attached to the same head). If <i>splitpos</i> is given the characters of Form and Lemma left of <i>splitpos</i> will
remain in the original word, the rest will be the new word</td></tr>
<tr><td>• <span class="userinputdoc">join <i>id</i></span></td> <td>merge word with <i>id</i> with the following. If the merged word overlap in any way with a multiword token (MWT), the MWT will be deleted</td></tr>
<tr><td>• <span class="userinputdoc">insert <i>id form [lemma [upos [xpos]]]</i></span></td> <td>add a new word after word with <i>id</i></td></tr>
<tr><td>• <span class="userinputdoc">delete <i>id</i></span></td> <td>delete word with <i>id</i>. Any overlapping MWT will also be deleted</td></tr>
<tr><td>• <span class="userinputdoc">sentsplit <i>id</i></span></td> <td>split current sentence at word id (id will be in the second sentence). Dependency and Enhanced Dependency relations between the words before and after the split will be deleted.</td></tr>
<tr><td>• <span class="userinputdoc">sentjoin</span></td> <td>merge current sentence with following</td></tr>
<tr><td>• <span class="userinputdoc">compose <i>id length</i></span></td> <td>create a multiword token (MWT).
The inserted <i>n-m</i> line will contain the form of the word with <i>id</i>. In order to edit or delete a multiword token, click on the multiword token
bar at the bottom of the dependency tree or graph.
</td></tr>
<tr><td>• <span class="userinputdoc">tomwt <i>id form1 form2 [form3 ...]</i></span></td>
<td>Transform an existing word into a MWT. The new MWT keeps the form of the word transformed. All other columns
are copied to the first member word, except the form which is <i>form1</i> from the command line. <i>form2</i>
etc are used to initialize the form (and lemma) column of the other members of the MWT. All members are initially attached to
the first member using the <i>fixed</i> depedency relation.
</td></tr>
<tr><td>• <span class="userinputdoc">emptyinsert <i>id form [lemma [upos [xpos]]]</i></span></td> <td>add a new empty word after word with <i>id</i>.
The new empty word gets the id <i>id.1</i>; if it is the first empty word at this position.
If there is already an empty word, the new one will have the id <i>id.2</i> etc.</td></tr>
<tr><td>• <span class="userinputdoc">emptydelete <i>id.subid</i></span></td> <td>delete empty word
with id <i>id.subid</i>.</td></tr>
</table>
<p><b>fast editing</b> Some UPOS/deprel can be changed by clicking on the word and than hit a key (sequence). UPOS and deprel
can be modified without going into the edit window. The following keys are defined
<table id="shortcuttableLegacy">
<tr>
<td valign="top"><table id="shortcuttableUPOS" style="float: left" border="0">
</table></td>
<td valign="top"><table id="shortcuttableDEPL" border="0">
</table></td>
<td valign="top"><table id="shortcuttableXPOS" border="0">
</table></td>
<td valign="top"><table id="shortcuttableFEATS" border="0">
</table></td>
<td valign="top"><table id="shortcuttableMISC" border="0">
</table></td>
</tr>
</table>
<table id="shortcuttableMulti">
<tr><th>key sequence</th> <th>set UPOS to</th> <th>set XPOS to</th> <th>set DEPREL to</th> <th>set FEATS to</th><th>set MISC to</th></tr>
</table>
<p>There is a list of predefined shortcuts which cannot be altered:
<ul>
<li><span class="keydoc">+</span> go to next sentence
<li><span class="keydoc">-</span> go to preceding sentence
<li><span class="keydoc">!</span> run validator on current sentence
<li><span class="keydoc">_</span> delete all features of active word
<li><span class="keydoc">delete</span> deletes active word
<li><span class="keydoc">?</span> shows/hides list of shortcuts
<li><span class="keydoc">&</span> followed by two digits: Shift the syntax tree so that the token with the given ID is centered in the visible part of the tree.
</ul>
<p>More definitions can be added to <tt>gui/shortcuts.json</tt> or by creating a personal file in the same format and
load it with the server option <tt>--shortcuts</tt>. Hitting <span class="keydoc">?</span> displays the current
shortcuts on the top of the screen (and hiding the search fields atthe same time). Hitting
<span class="keydoc">?</span> a second time, hides the shortcut list again.
If this file is not valid JSON,
default shortcuts will be used. Check validity with e.g. <br>
<span class="commandline">$ cat gui/shortcuts.json | jq .</span>
<p><b>Modify comment</b> (shown underneath the sentence): click the comment.</p>
<p>The <span class="buttondoc">download image</span> button downloads the current dependency tree as an <tt>.svg</tt> file. Use the following commands
to transform it into <tt>.pdf</tt> or <tt>.png</tt>:<br>
<span class="commandline">$ inkscape -A arbre.pdf arbre.svg</span><br>
<span class="commandline">$ inkscape -e arbre.png arbre.svg</span>
</p>
<p>In order to downlad the entire sentence in CoNLL-U, SD-Parser or
<span class="latex">L<sup>a</sup>T<sub>e</sub>X</span> (for tikz-dependencies),
click the corresponding buttons)</p>
<p>Changes can be undone/redone using the buttons
<img class="helptextbutton" style="width: 30px;" src="img/undo.svg"> and
<img class="helptextbutton" style="width: 30px;" src="img/redo.svg">.
The undo-memory is cleared when a new sentence is loaded</p>
<h3>Editing enhanced dependencies</h3>
Enhanced dependencies can be edited only in flat view mode. Activate the
<span class="buttondoc">edit enhanced dependencies</span> button. Like editing basic dependencies,
enhanced dependencies can be added by clicking on the dependant followed by clicking on the head.
Since a node can have multiple heads in enhanced dependencies, in order to delete an enhanced dep relations
either use the word edit on the dependant, or use click on the dependency label and then click on
<span class="buttondoc">delete</span>.
<p>
Basic dependencies, which are also enhanced dependencies are only deplaced if
<span class="buttondoc">show basic in enhanced</span> is activated.
or use a command and hit the <span class="buttondoc">modify</span> button:
<table border ="0" class="bhelpstyle">
<tr><td>• <span class="userinputdoc"><i>ed add dep_id newheadid</i></span> [<span class="userinputdoc"><i>deprel</i></span>]</td>
<td>add an enhanced dependency</td>
<tr><td>• <span class="userinputdoc"><i>ed del dep_id newheadid</i></span> </td>
<td>delete an enhanced dependency</td>
</table>
<h2>Searching</h2>
There are three search modes (toggle with <span class="buttondoc">toggle search modes</span>)
<h3>Simple search</h3>
<ul>
<li>The form and comment search fields accept any string (use double quotes if the search string starts/ends with a blank).
<br>For example
<ul>
<li><span class="userinputdoc">the</span> finds next occurrence of <i>the</i>, including <i>them</i> or <i>weather</i>.
<li><span class="userinputdoc">" the "</span> finds next occurrence of the definite article <i>the</i>.
<li><span class="userinputdoc">some of</span> finds next occurrence of <i>some of</i> (no quotes necessary, since the search string does not start with a blank).
</ul>
<li>The lemma/upos/xpos search fields accept a /-separated list of regex to find a corresponding sequence, for example
<ul>
<li>Upos: <span class="userinputdoc">AUX/.*/VERB</span> looks for a sequence of words with upos tags <i>AUX, any, VERB</i>
</ul>
<li>The <i>any</i> search fields accepts a /-separated list of <i>searchfield:regex</i> to find a sequence on different criteria.
<i>searchfield</i> can be any of
<span class="userinputdoc">f</span>,
<span class="userinputdoc">l</span>,
<span class="userinputdoc">u</span>,
<span class="userinputdoc">x</span>,
<span class="userinputdoc">d</span>,
<span class="userinputdoc">e</span> (form, lemma, upos, xpos, deprel, enhanced deps)
a <span class="userinputdoc">%</span> can be used to search for a word on more than one criterium.
<ul>
<li><span class="userinputdoc">l:the/u:ADJ/l:mouse</span> looks for a sequence of words, where the first word is <i>the</i>, the following
any adjective and the last is <i>mouse</i>
<li><span class="userinputdoc">l:the/u:ADJ%x:JJR/l:mouse</span> looks for a sequence of words, where the first word is <i>the</i>, the following
any adjective which has the XPOS <i>JJR</i> and the last word is <i>mouse</i>
</ul>
<li>
The deprel search field accepts a single or a list of regex,
separated by <span class="userinputdoc"><</span>, <span class="userinputdoc">=</span> or <span class="userinputdoc">></span> to search for branches in the dependency tree, for example
<ul>
<li><span class="userinputdoc">cc<nsubj</span> finds a word with <i>cc</i> deprel whose head has also a <i>nsubj</i> child.
<li><span class="userinputdoc">case>mark</span> finds a word with <i>case</i> deprel which has a child with a <i>mark</i> deprel.
<li><span class="userinputdoc">case=det</span> finds a word with <i>case</i> deprel whose head has a child with a <i>det</i> deprel.
</ul>
</ul>
<p>hit enter or click on the <img class="helptextbutton" style="width: 35px;" src="img/search.svg"> to start the search.
<p>
The search starts with the sentence following the displayed one. Activating the
<img class="helptextbutton" style="width: 40px;" src="img/backwards.svg"> button
searches towards the beginning of the file. <img class="helptextbutton" style="width: 40px;" src="img/clear.svg"> clears all search fields.
<h3>Complex search</h3>
enter a search condition <span class="userinputdoc">expression</span> where <span class="userinputdoc">expression</span>
is a set of <span class="userinputdoc">key:values</span>, operators like <span class="userinputdoc">and</span>,
<span class="userinputdoc">or</span> or <span class="userinputdoc">:</span> (<span class="userinputdoc">not</span>) and parentheses:<p>
<span class="userinputdoc">Upos:ADP and !Deprel:case</span>: searches for a token which has <i>ADP</i> as UPOS
and its deprel is not <i>case</i>.<P>
Available keys are:
<ul>
<li> <span class="userinputdoc">Upos</span> (Values: <span class="userinputdoc">[A-Z]+</span>)</li>
<li> <span class="userinputdoc">Xpos</span> (Values: string of any character except whitespaces, ')' and '&')</li>
<li> <span class="userinputdoc">Lemma</span> (Values: string of any character except whitespaces, ')' and '&')</li>
<li> <span class="userinputdoc">Form</span> (Values: string of any character except whitespaces, ')' and '&')</li>
<li> <span class="userinputdoc">Deprel</span> (Values: <span class="userinputdoc">[a-z]+</span>, optionally followed by ':' and a string of any character except whitespaces, ')' and '&')</li>
<li> <span class="userinputdoc">Feat</span> (Values: FeatureName=Value or FeatureName:Value. The Featurename must match <span class="userinputdoc">[A-Za-z_\[\]]+</span>, the Value must match <span class="userinputdoc">[A-Za-z0-9]+</span>)</li>
<li> <span class="userinputdoc">Misc</span> (Values: MiscName=Value or MiscName:Value. MiscName must match <span class="userinputdoc">[A-Za-z_]+</span>, the Value can be any string without whitespaces, ')' and '&')</li>
<li> <span class="userinputdoc">Id</span> (Values: integer)</li>
<li> <span class="userinputdoc">MWT</span> (Values: length of the mult-token word <span class="userinputdoc">[2-9]</span>)</li>
<li> <span class="userinputdoc">IsEmpty</span> (no value, true if the current node is empty)</li>
<li> <span class="userinputdoc">IsMWT</span> (no value, true if the current node is a multi token word)</li>
</ul>
In order to check for the absence of a given Featurename in the Feature or Misc column, use the following:
<ul>
<li><span class="userinputdoc">not Feat:Gender:</span> true if the current word has no feature <span class="userinputdoc">Gender</span>.
</ul>
In order to check any Feature (more Misc) value, do not specify the value:
<ul>
<li><span class="userinputdoc">Feat:Gender:</span> true if the current word has feature <span class="userinputdoc">Gender</span> with any value.
</ul>
In addition to key keys listed above, four functions are available to take the context of the token into account:
<ul>
<li> <span class="userinputdoc">child()</span> child of current token</li>
<li> <span class="userinputdoc">head()</span> head of current token</li>
<li> <span class="userinputdoc">prec()</span> preceding token</li>
<li> <span class="userinputdoc">next()</span> following token</li>
</ul>
For example:
<ul>
<li> <span class="userinputdoc">head(head(Upos:VERB and Feat:Tense=Past))</span> true if the current token has a head who has a head with UPOS <i>VERB</i> and the feature <i>Tense=Past</i></li>
<li> <span class="userinputdoc">child(Upos:VERB && Feat:VerbForm=Part) and child(Upos:DET)</span>: true if the current token has a dependant with UPOS <i>VERB</i>
and a feature <i>VerbForm=Part</i> and another child with UPOS <i>DET</i>. </li>
<li> <span class="userinputdoc">head(next(Upos:NOUN))</span>: true if the current token has a head which is followed by a token with UPOS <i>NOUN</i></li>
</ul>
Functions can be nested (eventhough <span class="userinputdoc">child(head())</span> does not make sense, does it :-)
<p>
In order to compare values (for instance to check whether subject-verb agreement is OK)
value comparison is possible using the access operator <span class="userinputdoc">@</span>:
e.g. <span class="userinputdoc">@Upos</span> or <span class="userinputdoc">@Feat:Number</span>
gives access to column values and <span class="userinputdoc">=</span> is used to compare.
If any of the accessed columns is empty (<span class="userinputdoc">_</span>) the comparison is evaluated as false.
<ul>
<li> <span class="userinputdoc">@Feat:Number=head(@Feat:Number)</span> returns true if the current word and its head both have a feature <span class="userinputdoc">Number</span> with the same value
<li> <span class="userinputdoc">@Upos=@Xpos</span> returns true if the current word has the same value for <span class="userinputdoc">UPOS</span> and <span class="userinputdoc">XPOS</span>
<li> <span class="userinputdoc">@Deprel=prec(@Deprel)</span>: true, if the current word and the preceding word have the same <span class="userinputdoc">deprel</span> value
<li> <span class="userinputdoc">@Xpos=head(head(@Feat:Featname))</span> true if the `XPOS` of the current word has the same value as the feature <span class="userinputdoc">Featname</span> of the head of its head.
<li> <span class="userinputdoc">@Feat:Gender=head(@Feat:Gender) and not Upos:DET</span> true if the head and the current word have the same value for the feature <span class="userinputdoc">Gender</span> and the current word is not a <span class="userinputdoc">DET</span>
</ul>
<h3>Search and replace</h3>
Fill in a search condition and a key:newvalues list, i.e. is a list of <i>key:values to</i> set to the current token.
If you click <span class="buttondoc">search & replace</span>, in the first sentence which has at least a token which matches
the condition, all matching tokens are modified, following the key:newvalues list:
<ul>
<li> <span class="userinputdoc">Form</span> (<span class="userinputdoc">Form:"newform"</span>) </li>
<li> <span class="userinputdoc">Lemma</span> (e.g. <span class="userinputdoc">Lemma:"Word"</span>) </li>
<li> <span class="userinputdoc">Upos</span> (e.g. <span class="userinputdoc">Upos:"Noun"</span>) </li>
<li> <span class="userinputdoc">Xpos</span> (e.g. <span class="userinputdoc">Xpos:"N_SG"</span>) </li>
<li> <span class="userinputdoc">Deprel</span> (e.g. <span class="userinputdoc">Deprel:"nsubj"</span>) </li>
<li> <span class="userinputdoc">Feat</span> (<span class="userinputdoc">Feat:"Featname:Value"</span>, an empty value deletes the feature from the word)</li>
<li> <span class="userinputdoc">Misc</span> (<span class="userinputdoc">Misc:"Key:Value"</span>, an empty value deletes the misc from the word)</li>
</ul>
The functions <span class="userinputdoc">head()</span> and <span class="userinputdoc">this()</span> can be used to copy values from
other tokens/columns to the indeicated column, e.g.:
<ul>
<li> <span class="userinputdoc">Eud:head(HeadId)+":"+head(Deprel)</span> set EUD to head and deprel of the headword
<li> <span class="userinputdoc">Lemma:this(Form)</span> set lemma to the form of current token
</ul>
(for more examples, see <a href="https://github.com/Orange-OpenSource/conllueditor/blob/master/doc/mass_editing.md">Mass editing</a>)
<h3>Grew Match search</h3>
ConlluEditor implements a subset of search as defined in <a href="http://universal.grew.fr/[email protected]">Grew Match</a>. The subset includes
<ul>
<li> node definitions: <span class="userinputdoc">pattern {N [upos=NOUN, lemma <> "thing"] } </span>
<li> deprel definitions: <span class="userinputdoc">pattern { V -[nsubj]-> N}</span> (including combinations of node and deprel definitions)
<li> <span class="userinputdoc">without</span> negations
</ul>
<h2>Run a validator</h2>
Any programme which can validate a file in CoNLL-U can be used. Specify the programme with all the
needed options and <tt>{FILE}</tt> at the position of the file to be validated in a file like
<br><tt> script: /path/to/UDtools/tools/validate.py --lang cy --max-err 0 --level 5 {FILE}</tt>
<br>and give this file as option to the server.
When hitting the <span class="buttondoc">validate</span> button or the <span class="keydoc">=</span> key, the validation programme
is run on the current sentence.
<h2>UD Dependency Relations</h2>
See also: <a target="_blank" href="http://universaldependencies.org/u/dep/all.html">http://universaldependencies.org/u/dep/all.html</a>
for universal dependency relation and language specific ones.
<br><br>
<table border="1">
<tr><th></th>
<th>Nominals</th>
<th>Clauses</th>
<th>Modifier words</th>
<th>Function words</th>
</tr>
<tr><th>Core arguments</th>
<td><div class="nsubj">nsubj<br> obj<br> iobj</div></td>
<td><div class="csubj">csubj<br> ccomp<br> xcomp</div></td>
<td></td>
<td></td>
</tr>
<tr><th>Non-core arguments</th>
<td><div class="obl">obl<br> vocative<br> expl<br> dislocated</div></td>
<td><div class="advcl">advcl</div></td>
<td><div class="advmod">advmod<br> discourse</div></td>
<td><div class="aux">aux<br> cop<br> mark</div></td>
</tr>
<tr><th>Nominal depdendants</th>
<td><div class="nmod">nmod<br> appos<br> nummod</div></td>
<td><div class="acl">acl</div></td>
<td><div class="amod">amod</div></td>
<td><div class="det">det<br> clf<br> case</div></td>
</tr>
<tr><th>coordination</th>
<th>MWE</th>
<th>Loose</th>
<th>Special</th>
<th>Other</th>
</tr>
<tr><td><div class="conj">conj<br>cc</div></td>
<td><div class="fixed">fixed<br> flat<br> compound</div></td>
<td><div class="list">list<br>parataxis</div></td>
<td><div class="orphan">orphan<br>goeswith<br>reparandum</div></td>
<td><div class="punct">punct<br> root<br> dep</div></td>
</tr>
</table>
<h2>Changelog</h2>
<a href="https://github.com/Orange-OpenSource/conllueditor/blob/master/CHANGES.md">CHANGES.md</a>
<h2>About</h2>
ConlluEditor v<span id="ce_version"></span>, <a href="https://github.com/Orange-OpenSource/conllueditor">https://github.com/Orange-OpenSource/conllueditor</a> <br>
Author: Johannes Heinecke.
Copyright © 2018-2024 by Orange. This software is published under the <a target="_blank" href="https://opensource.org/licenses/BSD-3-Clause">3-Clause BSD License</a>.
<p>
Powered by <a target="_blank" href="https://jquery.com/">jquery</a>,
<a target="_blank" href="https://getbootstrap.com">bootstrap</a> and
<a target="_blank" href="https://jqueryui.com/">jquery-ui</a>.
</p>
<p>
The backend uses java ≥ 11, <a target="_blank" href="https://github.com/google/gson">com.google.code.gson</a>
and <a target="_blank" href="https://www.eclipse.org/jgit/">org.eclipse.jgit</a>.
</p>
</div>
<div class="modal-footer">
<button type="button" class=" mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- error message -->
<div class="modal" id="errorMessage" tabindex="-1" role="dialog" aria-labelledby="commentEditLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="errorMsgTitle">Error</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<div class="errormessage" id="errormessagefield"></div>
<!-- textarea class="errormessage" id="errormessagefield" rows="6" cols="80" ></textarea-->
</div>
<div class="modal-footer">
<!-- button type="button" id="savecomment" class="mybutton">Save changes</button-->
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit comment -->
<div class="modal" id="commentEdit" tabindex="-1" role="dialog" aria-labelledby="commentEditLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="commentEditLabel">Edit comments</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<textarea class="comments" id="commenttext" rows="6" cols="80" ></textarea>
</div>
<div class="modal-footer">
<button type="button" id="savecomment" class="mybutton">Save changes</button>
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit word -->
<div class="modal" id="wordEdit" tabindex="-1" role="dialog" aria-labelledby="wordEditLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="wordEditLabel">Edit word</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<table id="wordedittable">
<tr><td>Id</td> <td><span id="cid"></span></td></tr>
<tr><td>Form</td> <td><div class="ui-widget"><input type="text" id="cform" size="60" value=""></div></td></tr>
<tr><td>Lemma</td> <td><div class="ui-widget"><input type="text" id="clemma" size="60" value=""></div></td></tr>
<tr><td>upos</td> <td><div class="ui-widget"><input type="text" id="cupos" size="60" value=""></div></td></tr>
<tr><td>xpos</td> <td><div class="ui-widget"><input type="text" id="cxpos" size="60" value=""></div></td></tr>
<tr><td>deprel</td> <td><div class="ui-widget"><input type="text" id="cdeprel2" size="60" value=""></div></td></tr>
<tr><td>features</td> <td><div class="ui-widget">
<!--input type="text" id="cfeats" size="50" value="" -->
<textarea type="text" id="cfeats" rows="5" cols="60"></textarea>
</div></td></tr>
<tr><td>enhanced deps</td><td><div class="ui-widget">
<!--input type="text" id="cenhdeps" size="60" value=""-->
<textarea type="text" id="cenhdeps" rows="3" cols="60"></textarea>
</div></td></tr>
<tr><td>misc</td> <td><div class="ui-widget">
<!--input type="text" id="cmisc" size="60" value=""-->
<textarea type="text" class="classmisc" id="cmisc" rows="3" cols="60"></textarea>
</div></td></tr>
</table>
</div>
<div class="modal-footer">
<button type="button" id="saveword" class="mybutton">Save changes</button>
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit basic dependency label -->
<div class="modal" id="deprelEdit" tabindex="-1" role="dialog" aria-labelledby="deprelEditLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="deprelEditLabel">Edit basic dependency relation name</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<table>
<tr>
<td>Head:</td> <td><span id="chead"></span></td>
<td>Dependent:</td> <td><span id="cdep"></span></td>
</tr>
<tr>
<td colspan="4"><div class="ui-widget"><input type="text" id="cdeprel" size="25" value=""></div></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" id="savedeprel" class=" mybutton">Save changes</button>
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit enhanced dependency label -->
<div class="modal" id="enhdeprelEdit" tabindex="-1" role="dialog" aria-labelledby="enhdeprelEditLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="enhdeprelEditLabel">Edit enhanced dependency relation name</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<table>
<tr>
<td>Head:</td> <td><span id="cheaden"></span></td>
<td>Dependent:</td> <td><span id="cdepen"></span></td>
</tr>
<tr>
<td colspan="4"><div class="ui-widget"><input type="text" id="cdeprelen" size="25" value=""></div></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" id="deletedeprelen" class=" mybutton">Delete enhanced dependency</button>
<button type="button" id="savedeprelen" class=" mybutton">Save changes</button>
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit multiword token -->
<div class="modal" id="editMWT" tabindex="-1" role="dialog" aria-labelledby="deleteMWT" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="showDeleteMWE">Edit Multiword Token</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<!--span id="qqcurrentMWTfrom"></span>-<span id="qqcurrentMWTto"></span-->
<table>
<tr><td>multiword token start</td> <td><div class="ui-widget"><input type="text" id="currentMWTfrom" value="" disabled></div></td></tr>
<tr><td>multiword token end</td> <td><div class="ui-widget"><input type="text" id="currentMWTto" value=""></div></td></tr>
<tr><td>form</td> <td><div class="ui-widget"><input type="text" id="currentMWTform" value=""></div></td></tr>
<tr><td>misc</td> <td><div class="ui-widget">
<!--input type="text" id="currentMWTmisc" value=""-->
<textarea type="text" class="classmisc" id="currentMWTmisc" rows="4" cols="20"></textarea>
</div></td></tr>
</table>
</div>
<div class="modal-footer">
<button type="button" id="editMWtoken" class="mybutton">Save</button>
<button type="button" class="mybutton" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<!-- show Latex/Conllu/sd-parse/validation output -->
<div class="modal" id="showRawModal" tabindex="-1" role="dialog" aria-labelledby="showRawModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="showRawModalLabel">How to edit</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<pre id="rawtext"></pre>
</div>
<div class="modal-footer">
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit sentence metadata -->
<div class="modal" id="metadataEdit" tabindex="-1" role="dialog" aria-labelledby="metadataEditLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="metadataEditLabel">Edit sentence metadata</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<table id="metadataedittable">
<tr><td>newdoc</td> <td><div class="ui-widget"><input type="text" id="cnewdoc" size="61" value=""></div></td></tr>
<tr><td>newpar</td> <td><div class="ui-widget"><input type="text" id="cnewpar" size="61" value=""></div></td></tr>
<tr><td>sent_id</td> <td><div class="ui-widget"><input type="text" id="csent_id" size="61" value=""></div></td></tr>
<tr><td>text</td> <td><div class="ui-widget"><input type="text" id="ctext" size="61" value=""></div></td>
<td><button type="button" id="inittext" class="mybutton">create</button></td>
</tr>
<tr><td>translit</td> <td><div class="ui-widget"><input type="text" id="ctranslit" size="61" value=""></div></td>
<td><button type="button" id="inittranslit" class="mybutton">init</button></td>
</tr>
<tr><td>translations</td> <td><div class="ui-widget">
<!--input type="text" id="cfeats" size="50" value="" -->
<textarea type="text" id="ctranslations" rows="5" cols="60"></textarea>
</div></td></tr>
</table>
</div>
<div class="modal-footer">
<button type="button" id="savemetadata" class="mybutton">Save changes</button>
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- show file stats -->
<div class="modal" id="fileStats" tabindex="-1" role="dialog" aria-labelledby="fileStatsLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="fileStatsLabel">File Statistics</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
<table>
<tr><td>File name:</td> <td><span class="stats" id="stats_filename"></span></td> </tr>
<tr><td>Number of sentences:</td> <td><span class="stats" id="stats_sent"></span></td> </tr>
<tr><td>Syntactic words:</td> <td><span class="stats" id="stats_syntwords"></span></td> </tr>
<tr><td>Surface words:</td> <td><span class="stats" id="stats_surfwords"></span></td> </tr>
<tr><td>Multiword tokens:</td> <td><span class="stats" id="stats_mwts"></span></td> </tr>
<tr><td>Empty words:</td> <td><span class="stats" id="stats_emptywords"></span></td> </tr>
<tr><td>UPOS:</td> <td class="stats" id="stats_upos"></td> </tr>
<tr><td>Deprels:</td> <td class="stats" id="stats_deprel"></td> </tr>
<tr><td>Deprels/UPOS:</td> <td class="stats" id="stats_deprel_upos"></td> </tr>
<tr><td>Features/UPOS:</td> <td class="stats" id="stats_feats"></td> </tr>
</table>
<!--div class="stats" id="stats_upos"></div-->
</div>
<div class="modal-footer">
<button type="button" class="mybutton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- edit features in table view -->
<div class="modal" id="editFeats" tabindex="-1" role="dialog" aria-labelledby="deleteMWT" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="showEditFeats">Edit Features</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" >
ID: <span class="FEtitle" id="FE_id"></span> form: <span class="FEtitle" id="FE_form"></span> UPOS: <span class="FEtitle" id="FE_upos"></span>
<table id="featureEditing">
</table>
</div>
<div class="modal-footer">
<button type="button" id="editFeatures" class="mybutton">Save</button>
<button type="button" class="mybutton" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</body>
</html>