classify returns None, not 'unknown'
This commit is contained in:
parent
7718941617
commit
0fffda8fe8
|
@ -18,7 +18,7 @@ as JSON). If the model is raw (a list), it will print a big warning on stderr.
|
||||||
### `Classifier.classify(text)`
|
### `Classifier.classify(text)`
|
||||||
Classify `text` with GPTC using the model used to instantiate the
|
Classify `text` with GPTC using the model used to instantiate the
|
||||||
`Classifier`. Returns the category into which the text is placed (as a
|
`Classifier`. Returns the category into which the text is placed (as a
|
||||||
string), or `'unknown'` when it cannot classify the text.
|
string), or `None` when it cannot classify the text.
|
||||||
|
|
||||||
## Model format
|
## Model format
|
||||||
Since you never really need to mess with compiled models, I won't discuss
|
Since you never really need to mess with compiled models, I won't discuss
|
||||||
|
|
Loading…
Reference in New Issue
Block a user