-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·225 lines (203 loc) · 9.03 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Wink - Stats, NLP & ML</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" type="text/css" href="stylesheets/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/master.css" />
<link rel="stylesheet" href="stylesheets/atom-one-dark.css">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
<script src="https://use.typekit.net/cwc1qce.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
</head>
<body>
<header>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a href="/" title="wink" class="navbar-brand">
32
</a>
</div>
<ul class="nav navbar-nav navbar-right hidden-sm hidden-md hidden-xs">
<li><a href="/packages.html">Packages</a></li>
<li><a href="http://github.com/winkjs">Github</a></li>
<li><a href="https://twitter.com/winkjs_org">Twitter</a></li>
<li><a href="http://graype.in/">About</a></li>
</ul>
</div>
</nav>
<div class="container masthead"><div class="row">
<div class="col-md-10 col-md-offset-1 hidden-sm hidden-md hidden-xs">
<!-- <a href="index.html">
<img src="images/face.png" alt="wink.js" id="logo"/>
</a> -->
<div id="viz"></div>
</div>
<div class="col-md-10 col-md-offset-1">
<h2><em>wink</em> breaks AI down into simple building blocks</h2>
</div>
</div></div>
</header>
<div class="feat">
<div class="container">
<div class="col-md-4">
<img src="images/nlp.png" class="featimg">
<h3>NLP</h3>
<p>Wish to make sense out of large corpus? We help you <a href="http://winkjs.org/wink-nlp-utils/#stringsentences">break paragraphs into sentences</a>, <a href="http://winkjs.org/wink-nlp-utils/#stringtokenize">tokenize sentences</a>, and <a href="http://winkjs.org/wink-pos-tagger/">pos tag</a> them.</p>
</div>
<div class="col-md-4">
<img src="images/ml.png" class="featimg">
<h3>Machine Learning</h3>
<p>Have a data set? Give it to the machine to make predictions using our <a href="https://github.com/winkjs/wink-naive-bayes-text-classifier">classifier</a> or <a href="https://github.com/winkjs/wink-regression-tree">regression tree</a>.</p>
</div>
<div class="col-md-4">
<img src="images/stats.png" class="featimg">
<h3>Statistics</h3>
<p>In the end, it's all numbers and maths. Use <a href="http://winkjs.org/wink-statistics/">statistics</a> package for fast and numerically stable analysis.</p>
</div>
</div>
</div>
<main class="container">
<div class="col-md-6">
<pre><code class="javascript">
// Load wink-pos-tagger.
var posTagger = require( 'wink-pos-tagger' );
// Create an instance of the pos tagger.
var tagger = posTagger();
// Tag the sentence using the tag sentence api.
tagger.tagSentence( '@FeminismInIndia👧 conducted a workshop at #AmbedkarUniversity on "online safety" recently:-)! reach us at [email protected]. #DigitalSaftey http://bit.ly/2F2m9rL' );
</code></pre>
</div>
<div class="col-md-6">
<h1>Get Started</h1>
<p>All packages expose consistent and uniform APIs, thus minimizing the need to learn a new interface for each task. With a comprehensive API documentation, you can be immediately productive.</p>
<a class="btn btn-default" role="button" href="https://www.npmjs.com/search?q=wink%20maintainer%3Asanjaya">Browse on NPM</a>
</div>
<div class="clearfix"></div>
<br><br><br><br><br><br>
<div class="col-md-6">
<h1>Simple & Mature</h1>
<p>wink is designed to help you focus on the task at hand. No complexities! Just simple functions, some JSON and zero-configuration is enough to get you started.</p>
<p>Designed to work with Node.js streams, it delivers high performance scale.</p>
<p><a role="button" class="btn btn-default" href="/packages.html">Read Documentation</a></p>
</div>
<div class="col-md-6">
<pre><code class="javascript">var lemmatize = require( 'wink-lemmatizer' );
lemmatize.adjective( 'farthest' );
// -> 'far'
</code></pre>
<pre><code class="javascript">var sentiment = require( 'wink-sentiment' );
sentiment( 'Excited to be part of the @imascientist team:-)!' );
// -> { score: 5,
// normalizedScore: 2.5,
// tokenizedPhrase: [
// { value: 'Excited', tag: 'word', score: 3 },
// { value: 'to', tag: 'word' },
// { value: 'be', tag: 'word' },
// { value: 'part', tag: 'word' },
// { value: 'of', tag: 'word' },
// { value: 'the', tag: 'word' },
// { value: '@imascientist', tag: 'mention' },
// { value: 'team', tag: 'word' },
// { value: ':-)', tag: 'emoticon', score: 2 },
// { value: '!', tag: 'punctuation' }
// ]
// }
</code></pre>
</div>
<div class="clearfix"></div>
<br><br><br><br><br><br>
<div class="col-md-6">
<pre><code class="javascript">
// Obtain wink's streaming api for standard deviation.
var stdev = require( 'wink-statistics' ).streaming.stdev();
// Use split2 package to break stream at every new line.
var split = require( 'split2' );
// Configuration to compute outliers.
const minDataSize = 3; // Min # data points to process before outliers detection begins
const useOutlier = false; // Use outlier data to update mean & standard deviation
const multiplier = 2.5; // Used to flag a value as outlier if it is > multiplier x std dev.
// Setup a pipe for standard input
process.stdin.pipe( split() ).on( 'data', function ( data ) {
const value = +data;
const r = stdev.result();
const isOutlier = (r.size && (r.size >= minDataSize) &&
((value > (r.mean + multiplier*r.stdev)) || (value < (r.mean - multiplier*r.stdev))));
if ( isOutlier ) {
console.log( 'Outlier: %d', value );
if ( useOutlier ) stdev.compute( value );
} else stdev.compute( value );
} );
</code></pre>
</div>
<div class="col-md-6">
<h1>Possibilities are endless</h1>
<p>Detect outliers in a stream of real numbers in near real time, or process large text corpus, or let machine do some learning for you. There are no limits!
</p><p>You can even run your code on a Raspberry Pi.</p>
<a role="button" class="btn btn-default" href="https://runkit.com/winkjs-org/">Try in sandbox</a>
</div>
</main>
<div class="signup">
<div class="container">
<div class="col-md-6 msg">
<h1>Sign up for updates!</h1>
<p>Get occasional updates from our team about new tools and guides.</p>
</div>
<div class="col-md-6">
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="https://winkjs.us12.list-manage.com/subscribe/post?u=d3c950efd6a89418263b00990&id=8fa8c3e2a7" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<div class="mc-field-group">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="[email protected]">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_d3c950efd6a89418263b00990_8fa8c3e2a7" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
<!--End mc_embed_signup-->
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-md-6">
<p>
© <a href="http://graype.in">graype systems</a>
</p>
</div>
<div class="col-md-6 social-icons">
<ul>
<li>
<a href="https://twitter.com/winkjs_org/">
<img src="images/twitter.png" alt="twitter" class="twitter">
</a>
</li>
<li>
<a href="https://github.com/winkjs">
<img src="images/github.png" alt="github" class="github">
</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="scripts/highlight.pack.js"></script>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript" src="scripts/viz.js"></script>
<script type="text/javascript" src="scripts/menu.js"></script>
</body>
</html>