howanching-clara
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -38,6 +38,22 @@ Intended uses:
|
|
38 |
Limitations:
|
39 |
- training and evaluation data is limited to English, and academic texts in Linguistics
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
## Try it yourself with the following examples (not in training/ evaluation data)
|
42 |
Excerpts from Chomsky, N. (2014). Aspects of the Theory of Syntax (No. 11). MIT press.
|
43 |
retrieved from https://apps.dtic.mil/sti/pdfs/AD0616323.pdf
|
|
|
38 |
Limitations:
|
39 |
- training and evaluation data is limited to English, and academic texts in Linguistics
|
40 |
|
41 |
+
## How to run
|
42 |
+
|
43 |
+
```python
|
44 |
+
from transformers import pipeline
|
45 |
+
|
46 |
+
classifier = pipeline("text-classification", model="howanching-clara/classifier_for_academic_texts", tokenizer="howanching-clara/classifier_for_academic_texts")
|
47 |
+
|
48 |
+
# Perform inference on your input text
|
49 |
+
your_text = "your text here."
|
50 |
+
result = classifier(your_text)
|
51 |
+
|
52 |
+
print(result)
|
53 |
+
```
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
## Try it yourself with the following examples (not in training/ evaluation data)
|
58 |
Excerpts from Chomsky, N. (2014). Aspects of the Theory of Syntax (No. 11). MIT press.
|
59 |
retrieved from https://apps.dtic.mil/sti/pdfs/AD0616323.pdf
|