Skip to content

Commit c99a3cb

Browse files
include ModalityType
1 parent a60181d commit c99a3cb

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

src/main/python/systemds/scuro/representations/bert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import torch
2727
from transformers import BertTokenizer, BertModel
2828
from systemds.scuro.representations.utils import save_embeddings
29+
from systemds.scuro.modality.type import ModalityType
2930

3031

3132
class Bert(UnimodalRepresentation):

src/main/python/systemds/scuro/representations/bow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from systemds.scuro.representations.unimodal import UnimodalRepresentation
2626
from systemds.scuro.representations.utils import save_embeddings
2727

28+
from systemds.scuro.modality.type import ModalityType
2829

2930
class BoW(UnimodalRepresentation):
3031
def __init__(self, ngram_range=2, min_df=2, output_file=None):

src/main/python/systemds/scuro/representations/glove.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
from systemds.scuro.representations.unimodal import UnimodalRepresentation
2626
from systemds.scuro.representations.utils import read_data_from_file, save_embeddings
27+
from systemds.scuro.modality.type import ModalityType
2728

2829

2930
def load_glove_embeddings(file_path):

src/main/python/systemds/scuro/representations/resnet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import torchvision.models as models
2828
import torchvision.transforms as transforms
2929
import numpy as np
30+
from systemds.scuro.modality.type import ModalityType
3031

3132
if torch.backends.mps.is_available():
3233
DEVICE = torch.device("mps")

src/main/python/systemds/scuro/representations/tfidf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from systemds.scuro.representations.unimodal import UnimodalRepresentation
2626
from systemds.scuro.representations.utils import save_embeddings
2727

28+
from systemds.scuro.modality.type import ModalityType
2829

2930
class TfIdf(UnimodalRepresentation):
3031
def __init__(self, min_df=2, output_file=None):

src/main/python/systemds/scuro/representations/word2vec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from gensim.models import Word2Vec
2626
from gensim.utils import tokenize
2727

28+
from systemds.scuro.modality.type import ModalityType
2829
import nltk
2930

3031
nltk.download("punkt_tab")

0 commit comments

Comments
 (0)