Instructions to use dbernsohn/roberta-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbernsohn/roberta-java with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="dbernsohn/roberta-java")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("dbernsohn/roberta-java") model = AutoModelForMaskedLM.from_pretrained("dbernsohn/roberta-java") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ fill_mask = pipeline(
|
|
| 23 |
|
| 24 |
You can then use this model to fill masked words in a Java code.
|
| 25 |
|
| 26 |
-
```
|
| 27 |
code = """
|
| 28 |
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
|
| 29 |
for (String i : cars) {
|
|
|
|
| 23 |
|
| 24 |
You can then use this model to fill masked words in a Java code.
|
| 25 |
|
| 26 |
+
```python
|
| 27 |
code = """
|
| 28 |
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
|
| 29 |
for (String i : cars) {
|