-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAIchatEN.html
More file actions
64 lines (50 loc) · 2.36 KB
/
AIchatEN.html
File metadata and controls
64 lines (50 loc) · 2.36 KB
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
<!-- The following line is essential for the "position: fixed" property to work correctly in IE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ES">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<title>Chatbot</title>
<meta charset="UTF-8">
<style>@import url(http://fonts.googleapis.com/css?family=Lato);
</style>
<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.2.custom.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
<link type="text/css" href="EN/jquery.ui.chatboxmod.css" rel="stylesheet" />
<link type="text/css" href="head.css" rel="stylesheet" />
<script type="text/javascript" src="EN/jquery.ui.chatboxmod.js"></script>
<script type="text/javascript" src="EN/AIchatload.js"></script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript" src="sinacento.js"></script>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript">
var reg = / it | the | a | or |and | and |\, |\. | to /g; // list of words to omit, if you use weights do not set score for that word
var csv = "FAQENweighted.csv"; // file with questions and answers
var decider=0.45; // jacobian estimator for sucessful clasification
var lengthmax=8; // max sentence length before being divided by two sentences
var memory=0; // 1 takes the last message sent into account for clasification. 0 does not.
var coef=0.7; // coefficient that allows typing errors and associates words with similar stem
var weights=1; // 1 assigns weights to words from the csv field, 0 ignores weights.
var check = null;
$(document).ready(function () {
$('#chat-head').addClass('animate');
$("#chat-head").click(function() {
if(check) { $("#chat_div").chatbox("option", "hidden", false);
}
else { init(csv,decider,reg,lengthmax,memory,coef,weights);check++;}
});
});
</script>
</head>
<body>
<div id="chat_div">
</div>
<div id="log">
</div>
<!-- Chat Head -->
<a id="chat-head" href="#">
<i>1</i>
</a>
</body>
</html>
</body>
</html>