model update
Browse files- README.md +3 -3
- config.json +1 -1
- pytorch_model.bin +2 -2
- tokenizer_config.json +1 -1
README.md
CHANGED
@@ -71,7 +71,7 @@ This model is fine-tuned version of [t5-base](https://huggingface.co/t5-base) fo
|
|
71 |
from lmqg import TransformersQG
|
72 |
|
73 |
# initialize model
|
74 |
-
model = TransformersQG(language=
|
75 |
|
76 |
# model prediction
|
77 |
answers = model.answer_q(list_question="What is a person called is practicing heresy?", list_context=" Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
|
@@ -83,8 +83,8 @@ answers = model.answer_q(list_question="What is a person called is practicing he
|
|
83 |
|
84 |
from transformers import pipeline
|
85 |
|
86 |
-
pipe = pipeline("text2text-generation",
|
87 |
-
output = pipe(
|
88 |
|
89 |
```
|
90 |
|
|
|
71 |
from lmqg import TransformersQG
|
72 |
|
73 |
# initialize model
|
74 |
+
model = TransformersQG(language="en", model="lmqg/t5-base-tweetqa-question-answering")
|
75 |
|
76 |
# model prediction
|
77 |
answers = model.answer_q(list_question="What is a person called is practicing heresy?", list_context=" Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
|
|
|
83 |
|
84 |
from transformers import pipeline
|
85 |
|
86 |
+
pipe = pipeline("text2text-generation", "lmqg/t5-base-tweetqa-question-answering")
|
87 |
+
output = pipe("question: What is a person called is practicing heresy?, context: Heresy is any provocative belief or theory that is strongly at variance with established beliefs or customs. A heretic is a proponent of such claims or beliefs. Heresy is distinct from both apostasy, which is the explicit renunciation of one's religion, principles or cause, and blasphemy, which is an impious utterance or action concerning God or sacred things.")
|
88 |
|
89 |
```
|
90 |
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "lmqg_output/t5-base-tweetqa-question-answering/
|
3 |
"add_prefix": false,
|
4 |
"architectures": [
|
5 |
"T5ForConditionalGeneration"
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "lmqg_output/t5-base-tweetqa-question-answering/model_eszyci/epoch_9",
|
3 |
"add_prefix": false,
|
4 |
"architectures": [
|
5 |
"T5ForConditionalGeneration"
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d9af18f30d344085a0c0eb5fce63dbe9354c80444d241743054f9bc72089d2f
|
3 |
+
size 891617855
|
tokenizer_config.json
CHANGED
@@ -104,7 +104,7 @@
|
|
104 |
"eos_token": "</s>",
|
105 |
"extra_ids": 100,
|
106 |
"model_max_length": 512,
|
107 |
-
"name_or_path": "lmqg_output/t5-base-tweetqa-question-answering/
|
108 |
"pad_token": "<pad>",
|
109 |
"special_tokens_map_file": null,
|
110 |
"tokenizer_class": "T5Tokenizer",
|
|
|
104 |
"eos_token": "</s>",
|
105 |
"extra_ids": 100,
|
106 |
"model_max_length": 512,
|
107 |
+
"name_or_path": "lmqg_output/t5-base-tweetqa-question-answering/model_eszyci/epoch_9",
|
108 |
"pad_token": "<pad>",
|
109 |
"special_tokens_map_file": null,
|
110 |
"tokenizer_class": "T5Tokenizer",
|