forked from paulrouget/dzslides
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnlpslides.html
93 lines (64 loc) · 2.16 KB
/
nlpslides.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>NLP Slides</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'>
<link href='./css/dz.css' rel='stylesheet'>
</head>
<body>
<!-- Your Slides -->
<!-- One section is one slide -->
<section>
<!-- This is the first slide -->
<h1>NLP snippets</h1>
<footer>by iLanguage Lab, Montreal QC</footer>
</section>
<section>
<h3>Regex playground</h3>
<iframe src="http://regexpal.com" height="50%" width="100%"></iframe>
</section>
<section>
<h3>Word Edit Distance</h3>
<form name= "form" action="demo_form.asp">
Word1: <input type="text" name="word1" id="word1" value= "nunavut" onblur="drawWED()"/><br />
Word2: <input type="text" name="word2" id="word2" value= "nunavik" onblur="drawWED()"/><br />
</form>
<p>Dynamic programming with backtrace<p>
<div id="wed3" style="margin:auto; "> </div>
</section>
<section>
<h3>Metathesis typos</h3>
<p>The candidates: hte vs. hie<p>
<div style="clear:both; margin:auto;">
<div id="wed1" style="float:left; width:50%; " > </div>
<div id="wed2" style="float:left; width:50%; "> </div>
</div>
</section>
<section>
<h3>Spellchecking</h3>
<ul>
<li>Minimum Edit Distance</li>
<li>Confusion Matrix (from gold standard of typos and spelling errors)</li>
<li>Weighted by phonological similarity {vowels}, {place of articulation}</li>
<li>Weighted by keyboard proximity</li>
</ul>
</section>
<div id="progress-bar"></div>
<script src="./src/dz.js"></script>
<script src="./src/Utils.js"></script>
<script src="./src/WordEditDistance.js"></script>
<script>
var drawWED = function(){
draw_word_edit_distance('wed3', '#'+document.form.word1.value, '#'+document.form.word2.value);
return true;
};
drawWED();
//draw_word_edit_distance('wed3','#ᐋᓐᓂᐊᖃᕐᓇᖏᑦᑐᓕᕆᔨ','#ᐋᓂᐊᖃᕐᓇᖏᑦᑐᓕᕆᔨ');
// draw_word_edit_distance('wed3',word1,word2);
// draw_word_edit_distance('wed1','#hte', '#the', function(){
// draw_word_edit_distance('wed2','#hte', '#hie',function(){
// });
// });
</script>
</body>
</html>