Instructions to use AIDA-UPM/star with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIDA-UPM/star with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="AIDA-UPM/star")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AIDA-UPM/star") model = AutoModel.from_pretrained("AIDA-UPM/star") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ This is the repository for the [Style Transformer for Authorship Representations
|
|
| 7 |
Also check out our [github repo for STAR](https://github.com/jahuerta92/star) for replication.
|
| 8 |
|
| 9 |
## Feature extraction
|
| 10 |
-
```
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained('roberta-large')
|
| 12 |
model = AutoModel.from_pretrained('AIDA-UPM/star')
|
| 13 |
|
|
|
|
| 7 |
Also check out our [github repo for STAR](https://github.com/jahuerta92/star) for replication.
|
| 8 |
|
| 9 |
## Feature extraction
|
| 10 |
+
```python
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained('roberta-large')
|
| 12 |
model = AutoModel.from_pretrained('AIDA-UPM/star')
|
| 13 |
|