Update README.md
Browse files
README.md
CHANGED
@@ -48,6 +48,20 @@ The task:
|
|
48 |
|
49 |
**_"To develop creative and reliable artificial intelligence (AI) models for automating the identification of patents related to green plastics."_**
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
## Training procedure
|
52 |
|
53 |
### Training hyperparameters
|
|
|
48 |
|
49 |
**_"To develop creative and reliable artificial intelligence (AI) models for automating the identification of patents related to green plastics."_**
|
50 |
|
51 |
+
## How to use the model
|
52 |
+
|
53 |
+
```python
|
54 |
+
from transformers import pipeline
|
55 |
+
|
56 |
+
model_id = "cwinkler/distilbert-base-uncased-finetuned-greenplastics-3"
|
57 |
+
classifier = pipeline("text-classification", model=model_id)
|
58 |
+
|
59 |
+
your_abstract = <insert_your_abstract_here_as_a_string>
|
60 |
+
# e.g. your_abstract = "The present disclosure relates to a process for recycling of plastic waste comprising: segregating plastic waste collected from various sources followed by cleaning of the segregated plastic waste to obtain segregated cleaned waste; grinding of the segregated cleaned waste to obtain grinded waste; introducing the grinded waste into an extrusion line having a venting extruder component as part of the extrusion line, to obtain molten plastic; and removing the impurities by vacuum venting of the molten plastic to obtained recycled plastic free from impurities. The present disclosure further relates to various articles like Industrial Post Recycled (IPR) plastic tubes, blow moulded bottles, pallates, manufactured from the recycled plastic waste."
|
61 |
+
preds = classifier(your_abstract, return_all_scores=True)
|
62 |
+
print(preds)
|
63 |
+
```
|
64 |
+
|
65 |
## Training procedure
|
66 |
|
67 |
### Training hyperparameters
|