-
Notifications
You must be signed in to change notification settings - Fork 0
/
end2end.html
executable file
·94 lines (88 loc) · 4.01 KB
/
end2end.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
<html lang="en" ng-app="app">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Log Processor</title>
<link href="css/styles.css" rel="stylesheet">
<link rel="stylesheet" href="bower_components/selectize/dist/css/selectize.default.css ">
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!--js-->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/selectize/dist/js/standalone/selectize.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/angular-selectize2/dist/angular-selectize.js"></script>
<!--[if lt IE 9]>`
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid" ng-controller="dialogViewController">
<div class="col-md-12">
<div class="text-center">
<a href="history.html" class="btn btn-lg">History</a>
<a href="nlu.html" class="btn btn-lg">NLU</a>
<a href="end2end.html" class="btn btn-lg">End-to-End</a>
<a href="cheatsheet.html" class="btn btn-lg">CheatSheet</a>
</div>
<div class="text-center">
<selectize config="fileOptions" options=listFiles ng-model="selectedFile"></selectize>
</div>
<br>
<div class="text-center">
<h3>{{fileData.title}}</h3>
<h6 ng-show="fileData.from_label">Already Labelled</h6>
</div>
<div class="text-center">
<h5>{{fileData.profile}}</h5>
</div>
<br>
<div class=body>
<div ng-show="!loadingFileData" ng-repeat="turn in turns track by $index">
<!--Verbal History-->
<h4 class="text-center">Dialog Context {{$index+1}}</h4>
<div class="history" ng-repeat="h in turn.history track by $index">
<div class=history ng-if="$index < turn.history.length-1"> <p>{{h}}</p> </div>
<div class=latestReply ng-if="$index == turn.history.length-1"> <p>{{h}}</p> </div>
</div>
<br>
<!--Belief States-->
<div ng-show="options.length > 1" ng-repeat="(c, options) in turn.mentions">
<div class="row">
<div class="col-md-6">
<b>{{c}}:</b> {{turn.slot_desc[c]}}
</div>
<div class=col-md-6>
<selectize config="beliefOptions" options=options ng-model="turn.belief[c]">c</selectize>
</div>
</div>
</div>
<br>
<!--Terminal Actions-->
<h5>Correct the response to the above dialog context:</h5>
<div class="sys_response"><b>System Said:</b> {{turn.sys_utt}}</div>
<div>
<b>Experts would say:</b> <br>
<textarea rows="2" cols="100" ng-model="turn.woz_utt"> {{turn.woz_utt}} </textarea>
</div>
<br>
<hr class="fancy">
</div>
<div>
<div class="saveArea">
<input type="button" class="form-control btn-success" value="Save" ng-click="saveData()">
</div>
</div>
<div class="col-md-12 text-center" ng-show="loadingFileData">
<p class="h4">Loading...</p>
</div>
</div>
</div>
</div>
<!--<script src="bower_components/requirejs/require.js" data-main="js/main.js"></script>-->
<script src="js/app.js"></script>
</body>
</html>