Skip to content

Commit e56ebef

Browse files
committed
Further improvements
1 parent ef080f8 commit e56ebef

26 files changed

+366
-318
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": [ ["es2015", { "loose": true }], "react" ]
2+
"presets": [ [ "es2015", { "loose": true }], "react" ]
33
}

index.html

+2-36
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,11 @@
88
</head>
99
<body>
1010
<div id="content" class="full"></div>
11-
<script src="http://localhost/development/mysam/mysam/dist/mysam.js"></script>
1211
<script src="./dist/mysam-ui.js"></script>
1312
<script>
14-
const app = window.sam = mysam();
15-
const sam = MysamUi(app, document.getElementById('content'));
13+
const sam = window.sam = mysam(document.getElementById('content'));
1614

17-
// localStorage.clear();
18-
19-
// sam.service('classify').on('trained', data => {
20-
// sam.service('classify').create({
21-
// text: 'Yo, the name is test'
22-
// }).then(res => {
23-
// console.log(res);
24-
// });
25-
26-
// sam.service('classify').create({
27-
// text: 'How\'s the weather in Berlin?'
28-
// }).then(res => {
29-
// console.log(res);
30-
// });
31-
// });
32-
33-
// Promise.all([
34-
// sam.service('trainings').create({
35-
// text: 'hi my name is david',
36-
// action: {
37-
// type: 'hi',
38-
// tags: { to: [ 4,4 ] }
39-
// }
40-
// }),
41-
42-
// sam.service('trainings').create({
43-
// text: 'what is the weather in vancouver',
44-
// action: {
45-
// type: 'weather',
46-
// tags: { location: [ 5, 5 ] }
47-
// }
48-
// })
49-
// ]);
15+
localStorage.debug = 'mysam*';
5016
</script>
5117
</body>
5218
</html>

lib/components/learner.js

-90
This file was deleted.

lib/components/tagger.js

-79
This file was deleted.

lib/index.js

-30
This file was deleted.

lib/plugins/learn.js

-11
This file was deleted.

0 commit comments

Comments
 (0)