-
Notifications
You must be signed in to change notification settings - Fork 2
/
search-demo.html
110 lines (107 loc) · 4.25 KB
/
search-demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Kim CNN In-Browser Demo</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js" integrity="sha256-ivk71nXhz9nsyFDoYoGf2sbjrR9ddh+XDkCcfZxjvcM="
crossorigin="anonymous"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<script src="awesomplete/awesomplete.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.12.2/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sprintf/1.1.1/sprintf.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script src="js/d3_app.js"></script>
<script type="text/javascript" src="js/db.js"></script>
<script type="text/javascript" src="js/filter.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/search_demo.js"></script>
<script type="text/javascript" src="js/sample-inputs.js"></script>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="awesomplete/awesomplete.css" />
<link rel="stylesheet" href="css/default.css">
<link rel="stylesheet" href="css/d3_app.css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./index.html">Kim CNN In-Browser Demo</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="./index.html">Home</a></li>
<li><a href="./indexing-demo.html">Indexing</a></li>
<li class="active"><a href="./search-demo.html">Inference</a></li>
<li><a href="./kimcnn-demo.html">Feature Map Activations</a></li>
<li><a href="./filter-demo.html">Individual Filter Activations</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>Kim CNN <small>Inference Demo</small></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>The following demo runs inference on a sentence. Enter some substring in the textbox and sentences with the substring will appear.
Select a sentence and click run to run inference on a sentence.
Be sure to <a href="indexing-demo.html">build the index</a> first!</p>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="message" style="margin-top:10px"></div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<input type="text" class="form-control" id="query" />
</div>
<div class="col-md-2">
<button class="btn btn-primary" id="searchButton">Run</button></p>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body" id="inference-result">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div style="padding-bottom: 50px">
<div class="sentences" id="sent"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="results" style="padding-bottom: 50px">
<!-- http://playground.tensorflow.org/ -->
<!-- Color Map -->
<div><svg id="colormap" width="600" height="70"></svg></div>
<div align="center"> <svg id="network" height="0"></svg></div>
</div>
</div>
</div>
</div>
</body>
</html>