File size: 1,002 Bytes
3ba8afb
 
 
 
 
 
 
10d8e1b
3ba8afb
10d8e1b
3ba8afb
 
87b9a00
d4fb737
f6aef03
d3839e9
6591fb8
c100d6c
 
6591fb8
 
 
 
 
 
cb41fcd
6591fb8
cb41fcd
6591fb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
language: "en"
tags:
- buy-intent
- sell-intent
- consumer-intent
widget:
- text: "Coronavirus disease (COVID-19) is an infectious disease caused by the SARS-CoV-2 virus."
---
# Chemical vs Pharmaceutical Domain Document Classifier
| Train Loss    | Validation Acc.| Test Acc.|
| ------------- |:-------------: | -----:   |
| 0.17      | 0.928  | 0.927    |
# Dataset
Dataset with splits can be found @ [https://www.kaggle.com/shahrukhkhan/pharma-vs-chemicals-domain-classification](https://www.kaggle.com/shahrukhkhan/pharma-vs-chemicals-domain-classification)

# Label Mappings
LABEL_0 => **"CHEMICAL"** <br/>
LABEL_1 => **"PHARMACEUTICAL"**

## Usage in Transformers

```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
  
tokenizer = AutoTokenizer.from_pretrained("recobo/chemical-bert-uncased-pharmaceutical-chemical-classifier")

model = AutoModelForSequenceClassification.from_pretrained("recobo/chemical-bert-uncased-pharmaceutical-chemical-classifier")
```