Update README.md
Browse files
README.md
CHANGED
|
@@ -14,9 +14,10 @@ class TemporalRelationClassificationPipeline(TextClassificationPipeline):
|
|
| 14 |
def check_model_type(self, supported_models):
|
| 15 |
pass
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
classifier = pipeline(task='text-classification', model=model, tokenizer=tokenizer)
|
| 21 |
|
| 22 |
txt = "诪讞专 [讗1] 讗转讗诪谉 [/讗1] 讗诐 [讗2] 讗住讬讬诐 [/讗2] 讗转 讻诇 讛诪砖讬诪讜转 砖诇讬"
|
|
|
|
| 14 |
def check_model_type(self, supported_models):
|
| 15 |
pass
|
| 16 |
|
| 17 |
+
pretrained_checkpoint = "guyyanko/split-3-hebrew-trc-alephbert-base-EMP"
|
| 18 |
+
|
| 19 |
+
model = AutoModelForSequenceClassification.from_pretrained(pretrained_checkpoint, trust_remote_code=True)
|
| 20 |
+
tokenizer = AutoTokenizer.from_pretrained(pretrained_checkpoint, trust_remote_code=True)
|
| 21 |
classifier = pipeline(task='text-classification', model=model, tokenizer=tokenizer)
|
| 22 |
|
| 23 |
txt = "诪讞专 [讗1] 讗转讗诪谉 [/讗1] 讗诐 [讗2] 讗住讬讬诐 [/讗2] 讗转 讻诇 讛诪砖讬诪讜转 砖诇讬"
|