Update README.md
Browse files
README.md
CHANGED
@@ -27,6 +27,17 @@ This model is intended for use within the field of Computer Vision, as is traine
|
|
27 |
|
28 |
It is trained and validated using computer vision textbooks split into chunks of 512 tokens
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
## Training procedure
|
31 |
|
32 |
### Training hyperparameters
|
|
|
27 |
|
28 |
It is trained and validated using computer vision textbooks split into chunks of 512 tokens
|
29 |
|
30 |
+
## Usage
|
31 |
+
```python
|
32 |
+
from transformers import pipeline
|
33 |
+
|
34 |
+
question = "What is PCA?"
|
35 |
+
question_answering = pipeline(model='psxjp5/mlm')
|
36 |
+
output = question_answering(formatted_text)
|
37 |
+
|
38 |
+
print(output[0]['generated_text'])
|
39 |
+
```
|
40 |
+
|
41 |
## Training procedure
|
42 |
|
43 |
### Training hyperparameters
|