Spaces:
Runtime error
Runtime error
Update CEFR_evaluator/model_base.py
Browse files
CEFR_evaluator/model_base.py
CHANGED
|
@@ -5,7 +5,7 @@ from torch.utils.data import DataLoader
|
|
| 5 |
import pytorch_lightning as pl
|
| 6 |
from transformers import AutoTokenizer, AutoModel
|
| 7 |
from sklearn.metrics import f1_score
|
| 8 |
-
from util import mean_pooling, token_embeddings_filtering_padding, read_corpus, CEFRDataset, eval_multiclass
|
| 9 |
|
| 10 |
class LevelEstimaterBase(pl.LightningModule):
|
| 11 |
def __init__(self, corpus_path, test_corpus_path, pretrained_model, with_ib, attach_wlv,
|
|
|
|
| 5 |
import pytorch_lightning as pl
|
| 6 |
from transformers import AutoTokenizer, AutoModel
|
| 7 |
from sklearn.metrics import f1_score
|
| 8 |
+
from .util import mean_pooling, token_embeddings_filtering_padding, read_corpus, CEFRDataset, eval_multiclass
|
| 9 |
|
| 10 |
class LevelEstimaterBase(pl.LightningModule):
|
| 11 |
def __init__(self, corpus_path, test_corpus_path, pretrained_model, with_ib, attach_wlv,
|