andruhon commited on
Commit
c9e1b85
·
1 Parent(s): 65b6548

add README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Classify text by UNSPSC family
2
+
3
+ Forked from https://huggingface.co/govspend/unspsc_family_5examples_test2
4
+
5
+ See https://en.wikipedia.org/wiki/UNSPSC
6
+
7
+ ## Usage
8
+ There was no documentation on the original model, and demo isn't working, but this works with simple pipeline:
9
+
10
+ ```python
11
+ pipe = pipeline("text-classification", model="andruhon/unspsc_family_5examples_test2", tokenizer="bert-base-uncased")
12
+ pipe("7oz hammer");
13
+ # Would return something like {'label': 'LABEL_105', 'score': 0.339}
14
+ # In this case LABEL_105 clearly goes into 27110000 Handtools
15
+ ```
16
+
17
+ ## License
18
+ The original model didn't have license file.
19
+ Considering that it's BERT it should have the same license, which I think is Apache 2.0.
20
+ Use on your own risk. I'll update this file once I have more info.