1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

add thought vectors

This commit is contained in:
Jack Morris
2020-05-06 11:16:17 -04:00
parent 3602625e0b
commit d647133230
5 changed files with 69 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import torch.nn as nn
from textattack.shared import utils
from textattack.models.helpers import GloveEmbeddingLayer
from textattack.models.helpers.helper_utils import load_cached_state_dict
from textattack.models.helpers.utils import load_cached_state_dict
class LSTMForClassification(nn.Module):
""" A long short-term memory neural network for text classification.