Views
No views yet
1pipe = pipeline("text-classification", model="andruhon/unspsc_family_5examples_test2", tokenizer="bert-base-uncased")
2pipe("7oz hammer");
3# Would return something like {'label': 'LABEL_105', 'score': 0.339}
4# In this case LABEL_105 clearly goes into 27110000 Handtools