ZoeYou commited on
Commit
b049ac4
·
verified ·
1 Parent(s): 08e83f3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -4
README.md CHANGED
@@ -1,6 +1,13 @@
 
 
 
 
 
 
 
1
  # PatentBERT - PyTorch
2
 
3
- BERT model specialized for patent classification using the **real CPC (Cooperative Patent Classification) system** from the original PatentBERT training data.
4
 
5
  ## 📊 Specifications
6
 
@@ -57,7 +64,7 @@ predicted_class_id = predictions.argmax().item()
57
  confidence = predictions.max().item()
58
 
59
  # Use model labels (real CPC codes)
60
- predicted_label = model.config.id2label[str(predicted_class_id)]
61
 
62
  print(f"Predicted CPC class: {predicted_label} (ID: {predicted_class_id})")
63
  print(f"Confidence: {confidence:.2%}")
@@ -80,8 +87,7 @@ This model was trained on a large patent corpus to automatically classify docume
80
 
81
  - [Cooperative Patent Classification (CPC)](https://www.cooperativepatentclassification.org/)
82
  - [Original PatentBERT Paper](https://arxiv.org/abs/2103.02557)
83
- - [Hugging Face Transformers](https://huggingface.co/transformers/)
84
 
85
  ## 📝 Citation
86
 
87
- If you use this model, please cite the original PatentBERT work and mention this PyTorch conversion.
 
1
+ ---
2
+ license: gpl-3.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - google-bert/bert-base-uncased
7
+ ---
8
  # PatentBERT - PyTorch
9
 
10
+ BERT model specialized for patent classification using the **CPC (Cooperative Patent Classification) system**. ([PatentBert](https://github.com/jiehsheng/PatentBERT) converted into PyTorch version)
11
 
12
  ## 📊 Specifications
13
 
 
64
  confidence = predictions.max().item()
65
 
66
  # Use model labels (real CPC codes)
67
+ predicted_label = model.config.id2label[predicted_class_id]
68
 
69
  print(f"Predicted CPC class: {predicted_label} (ID: {predicted_class_id})")
70
  print(f"Confidence: {confidence:.2%}")
 
87
 
88
  - [Cooperative Patent Classification (CPC)](https://www.cooperativepatentclassification.org/)
89
  - [Original PatentBERT Paper](https://arxiv.org/abs/2103.02557)
 
90
 
91
  ## 📝 Citation
92
 
93
+ If you use this model, please cite the original PatentBERT work and mention this PyTorch conversion.