Skip to content

Commit 513af38

Browse files
committed
Update docs
1 parent fdf90bf commit 513af38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/classifier.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* [Classifier](#Classifier)
66
* [new Classifier([model])](#new_Classifier_new)
77
* [.model](#Classifier+model) : <code>Model</code>
8-
* [.train([input], label)](#Classifier+train) ⇒ <code>this</code>
8+
* [.train(input, label)](#Classifier+train) ⇒ <code>this</code>
99
* [.predict(input, [maxMatches], [minimumConfidence])](#Classifier+predict) ⇒ <code>Array</code>
1010
* [.splitWords(input)](#Classifier+splitWords) ⇒ <code>Array</code>
1111
* [.tokenize(input)](#Classifier+tokenize) ⇒ <code>Object</code>
@@ -32,7 +32,7 @@ Model instance
3232

3333
<a name="Classifier+train"></a>
3434

35-
### classifier.train([input], label) ⇒ `this`
35+
### classifier.train(input, label) ⇒ `this`
3636
Train the current model using an input string (or array of strings) and a corresponding label
3737

3838
| Param | Type | Description |

src/classifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Classifier {
4040
/**
4141
* Train the current model using an input string (or array of strings) and a corresponding label
4242
*
43-
* @param {(string|string[])} [input] - String, or an array of strings
43+
* @param {(string|string[])} input - String, or an array of strings
4444
* @param {string} label - Corresponding label
4545
* @return {this}
4646
*/

0 commit comments

Comments
 (0)