trainvocabulary module
- class trainvocabulary.TrainVocabularyResource
- methods: ClassVar[Optional[Collection[str]]] = {'POST'}
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- post()
trains the TF-IDF vectorizer and nearest neighbors model for current vocab
- Parameters:
header (str) – which vocabulary to train
- Returns:
errors – True/False on error list
- Return type:
list
Examples
- {
“header”:”organ”
}