Skip to content

Commit

Permalink
renamed datasets and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MaramHasanain committed Sep 4, 2023
1 parent 80d8692 commit 5f2b417
Show file tree
Hide file tree
Showing 40 changed files with 102 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re

from llmebench.datasets import CT22AttentionworthyDataset
from llmebench.models import GPTModel, RandomGPTModel
from llmebench.models import GPTModel
from llmebench.tasks import AttentionworthyTask


Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import os
import random
import re

from llmebench.datasets import CT22AttentionworthyDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import AttentionworthyTask


random.seed(1333)


def config():
return {
"dataset": CT22AttentionworthyDataset,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import os
import random
import re

from llmebench.datasets import CT22AttentionworthyDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import AttentionworthyTask


random.seed(1333)


def config():
return {
"dataset": CT22AttentionworthyDataset,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import os
import random
import re

from llmebench.datasets import CT22CheckworthinessDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import CheckworthinessTask


random.seed(1333)


def config():
return {
"dataset": CT22CheckworthinessDataset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import random
import re

from llmebench.datasets import WANLP22PropagandaDataset
from llmebench.datasets import WANLP22T3PropagandaDataset
from llmebench.models import BLOOMPetalModel
from llmebench.tasks import PropagandaMultilabelTask
from llmebench.tasks import MultilabelPropagandaTask


random.seed(1333)


def config():
return {
"dataset": WANLP22PropagandaDataset,
"dataset": WANLP22T3PropagandaDataset,
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda/classes.txt"
},
"task": PropagandaMultilabelTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": BLOOMPetalModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

import regex as re

from llmebench.datasets import WANLP22PropagandaDataset
from llmebench.datasets import WANLP22T3PropagandaDataset
from llmebench.models import GPTModel
from llmebench.tasks import PropagandaMultilabelTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
return {
"dataset": WANLP22PropagandaDataset,
"dataset": WANLP22T3PropagandaDataset,
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda/classes.txt"
},
"task": PropagandaMultilabelTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import random
import re

from llmebench.datasets import WANLP22PropagandaDataset
from llmebench.datasets import WANLP22T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import PropagandaMultilabelTask
from llmebench.tasks import MultilabelPropagandaTask


random.seed(1333)


def config():
return {
"dataset": WANLP22PropagandaDataset,
"dataset": WANLP22T3PropagandaDataset,
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda/classes.txt"
},
"task": PropagandaMultilabelTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import random
import re

from llmebench.datasets import WANLP22T3Dataset
from llmebench.datasets import WANLP22T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import PropagandaMultilabelTask
from llmebench.tasks import MultilabelPropagandaTask


random.seed(1333)


def config():
return {
"dataset": WANLP22T3Dataset,
"dataset": WANLP22T3PropagandaDataset,
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda/classes.txt"
},
"task": PropagandaMultilabelTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

from llmebench.datasets import SubjectivityDataset
from llmebench.datasets import CT23SubjectivityDataset
from llmebench.models import BLOOMPetalModel
from llmebench.tasks import SubjectivityTask


def config():
return {
"dataset": SubjectivityDataset,
"dataset": CT23SubjectivityDataset,
"dataset_args": {},
"task": SubjectivityTask,
"task_args": {},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

from llmebench.datasets import SubjectivityDataset
from llmebench.datasets import CT23SubjectivityDataset
from llmebench.models import GPTModel, RandomGPTModel
from llmebench.tasks import SubjectivityTask


def config():
return {
"dataset": SubjectivityDataset,
"dataset": CT23SubjectivityDataset,
"dataset_args": {},
"task": SubjectivityTask,
"task_args": {},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

from llmebench.datasets import SubjectivityDataset
from llmebench.datasets import CT23SubjectivityDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SubjectivityTask


def config():
return {
"dataset": SubjectivityDataset,
"dataset": CT23SubjectivityDataset,
"dataset_args": {},
"task": SubjectivityTask,
"task_args": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
import re

from llmebench.datasets import SubjectivityDataset
from llmebench.datasets import CT23SubjectivityDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SubjectivityTask

Expand All @@ -12,7 +12,7 @@

def config():
return {
"dataset": SubjectivityDataset,
"dataset": CT23SubjectivityDataset,
"dataset_args": {},
"task": SubjectivityTask,
"task_args": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import BLOOMPetalModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": BLOOMPetalModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -13,7 +13,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import BLOOMPetalModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": BLOOMPetalModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -13,7 +13,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import BLOOMPetalModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": BLOOMPetalModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -12,7 +12,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from llmebench.datasets import SemEval23T3PropagandaDataset
from llmebench.models import GPTChatCompletionModel
from llmebench.tasks import SemEval23T3PropagandaTask
from llmebench.tasks import MultilabelPropagandaTask


def config():
Expand All @@ -13,7 +13,7 @@ def config():
"dataset_args": {
"techniques_path": "data/factuality_disinformation_harmful_content/propaganda_semeval23/techniques_subtask3.txt"
},
"task": SemEval23T3PropagandaTask,
"task": MultilabelPropagandaTask,
"task_args": {},
"model": GPTChatCompletionModel,
"model_args": {
Expand Down
Loading

0 comments on commit 5f2b417

Please sign in to comment.