Instructions to use andruhon/unspsc_family_5examples_test2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andruhon/unspsc_family_5examples_test2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="andruhon/unspsc_family_5examples_test2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("andruhon/unspsc_family_5examples_test2") model = AutoModelForSequenceClassification.from_pretrained("andruhon/unspsc_family_5examples_test2") - Notebooks
- Google Colab
- Kaggle
Classify text by UNSPSC family
Forked from https://huggingface.co/govspend/unspsc_family_5examples_test2
See https://en.wikipedia.org/wiki/UNSPSC
Usage
pipe = pipeline("text-classification", model="andruhon/unspsc_family_5examples_test2", tokenizer="bert-base-uncased")
pipe("7oz hammer");
# Would return something like {'label': 'LABEL_105', 'score': 0.339}
# In this case LABEL_105 clearly goes into 27110000 Handtools
License
The original model didn't have license file. Considering that it's BERT it should have the same license, which I think is Apache 2.0. Use on your own risk. I'll update this file once I have more info.
- Downloads last month
- 3