Text Classification
Transformers
PyTorch
Romanian
vgcn
offensive language
graph neural networks
gnn
custom_code
Instructions to use andyP/ro-offense-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andyP/ro-offense-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="andyP/ro-offense-model", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("andyP/ro-offense-model", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Readme update
Browse files- modeling_vcgn.py +1 -1
modeling_vcgn.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch.nn.functional as F
|
|
| 4 |
from transformers import PreTrainedModel, BertTokenizer
|
| 5 |
from transformers.utils import is_remote_url, download_url
|
| 6 |
from pathlib import Path
|
| 7 |
-
from configuration_vgcn import VGCNConfig
|
| 8 |
import pickle as pkl
|
| 9 |
import numpy as np
|
| 10 |
import scipy.sparse as sp
|
|
|
|
| 4 |
from transformers import PreTrainedModel, BertTokenizer
|
| 5 |
from transformers.utils import is_remote_url, download_url
|
| 6 |
from pathlib import Path
|
| 7 |
+
from .configuration_vgcn import VGCNConfig
|
| 8 |
import pickle as pkl
|
| 9 |
import numpy as np
|
| 10 |
import scipy.sparse as sp
|