-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (40 loc) · 2.54 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./static/lib/bootstrap-4.3.1/css/bootstrap.min.css">
<!-- App Style -->
<link rel="stylesheet" href="./static/css/style.css">
<title>POS Tagger</title>
</head>
<body>
<div class='container-fluid'>
<div class='p-3 text-right'>
<h4 class='float-left mr-3'>--- POS Tagger ---</h4>
<input type='file' id='file_json'>
<input type='button' id='btn_save_as' value='Save As'>
</div>
<div class='output'></div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="./static/lib/jquery-3.4.1.min.js"></script>
<script src="./static/lib/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
<script src="./static/lib/FileSaver.min.js"></script>
<!-- App Script -->
<script src='./config.js'></script>
<script src='./static/js/app.js'></script>
<script src='./static/js/format.js'></script>
<script src='./static/js/render.js'></script>
<script src='./static/js/load.js'></script>
<script src='./static/js/save.js'></script>
<script>
// play demo
let df = {"sentence":{"0":"สวัสดีชาวโลก","1":"วันนี้วันศุกร์","2":"ชานมไข่มุกอร่อยมาก","3":"อากาศดีสุดๆไปเลย","4":"หมอกจางๆและควัน"},"token":{"0":["สวัสดี","ชาว","โลก"],"1":["วัน","นี้","วัน","ศุกร์"],"2":["ชานม","ไข่","มุก","อร่อย","มาก"],"3":["อากาศ","ดี","สุด","ๆ","ไป","เลย"],"4":["หมอก","จาง","ๆ","และ","ควัน"]},"pos_tag":{"0":[["สวัสดี","NCMN"],["ชาว","NCMN"],["โลก","NCMN"]],"1":[["วัน","NCMN"],["นี้","DDAC"],["วัน","NCMN"],["ศุกร์","NPRP"]],"2":[["ชานม","NCMN"],["ไข่","NCMN"],["มุก","NCMN"],["อร่อย","NCMN"],["มาก","ADVN"]],"3":[["อากาศ","NCMN"],["ดี","VATT"],["สุด","ADVN"],["ๆ","PUNC"],["ไป","XVAE"],["เลย","XVAE"]],"4":[["หมอก","NCMN"],["จาง","NCMN"],["ๆ","NCMN"],["และ","JCRG"],["ควัน","NCMN"]]}};
render_from_df(df);
</script>
</body>
</html>