facebookresearch / InferSent

InferSent sentence embeddings
Other
2.28k stars 471 forks source link

ModuleNotFoundError: No module named 'models' #150

Open AnkS4 opened 2 years ago

AnkS4 commented 2 years ago

Getting this error on Google colab.

Both torch & torchvision seem to be preinstalled.

!pip install torchvision returns

Requirement already satisfied: torchvision
Requirement already satisfied: torch
.........
import torch
from models import InferSent
Suzansb commented 1 year ago

You can use tensorflow and solve this problem

import tensorflow as tf 
from tensorflow.keras.models import Model