remove python -m
This commit is contained in:
parent
b61ad35ae7
commit
73b800d60d
|
@ -14,7 +14,7 @@ GPTC provides both a CLI tool and a Python library.
|
|||
|
||||
### Classifying text
|
||||
|
||||
python -m gptc classify [-n <max_ngram_length>] <compiled model file>
|
||||
gptc classify [-n <max_ngram_length>] <compiled model file>
|
||||
|
||||
This will prompt for a string and classify it, then print (in JSON) a dict of
|
||||
the format `{category: probability, category:probability, ...}` to stdout. (For
|
||||
|
@ -22,14 +22,14 @@ information about `-n <max_ngram_length>`, see section "Ngrams.")
|
|||
|
||||
Alternatively, if you only need the most likely category, you can use this:
|
||||
|
||||
python -m gptc classify [-n <max_ngram_length>] <-c|--category> <compiled model file>
|
||||
gptc classify [-n <max_ngram_length>] <-c|--category> <compiled model file>
|
||||
|
||||
This will prompt for a string and classify it, outputting the category on
|
||||
stdout (or "None" if it cannot determine anything).
|
||||
|
||||
### Compiling models
|
||||
|
||||
python -m gptc compile [-n <max_ngram_length>] <raw model file>
|
||||
gptc compile [-n <max_ngram_length>] <raw model file>
|
||||
|
||||
This will print the compiled model in JSON to stdout.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user