Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
edit readme & fix clissifer export for script
Browse files Browse the repository at this point in the history
  • Loading branch information
黃柏崴 authored and 黃柏崴 committed Mar 4, 2016
1 parent 46aa8b8 commit af14b3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
33 changes: 12 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@ Smart Classifier
Smart Classifier is a program that could guess that what you are talking about or area that article is dicussing.

**P.s Just work on Traditional Chinese (big5).**

----------
Installation
===================

npm install smartclassifier

Initialization
===================
```javascript
Object.init(CkIPServerIPAddress, port, account, password);

```
Classify
===================

```javascript
var data = [
{ title: 'title', content: 'content'},
{ title: 'title', content: 'content'}];
{ title: 'title', content: 'content you want to classifier'},
{ title: 'title', content: 'content you want to classifier'}];

classifier.classifier(data, function (result) {
console.log(result);
```
This is the result


```javascript
[{ title: 'title', content: 'content' area: '', class:''},
{ title: 'title', content: 'content' area: '', class:''}]
```
Library
===================
Expand All @@ -39,14 +37,7 @@ Currently, we just have the below libraies, so the smartClassifier just could id
License
===================
The smartclassifier is authorized to Academic use.

Copyright(c) 2016-2020 Bo-Wei Huang

MIT License

If you have any question, please contact me with mail.

[email protected]

I'll response you as soon as posible.
The smartclassifier is authorized to Academic use.
Copyright(c) 2016-2020 Bo-Wei Huang
MIT License
National Dong Hwa University
2 changes: 1 addition & 1 deletion lib/classifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,6 @@ var natural = require('natural'),
}
// included directly via <script> tag
else {
root.async = classifier;
root.classifier = classifier;
}
}());

0 comments on commit af14b3f

Please sign in to comment.