Started dataset.py, added the ReviewDataset class and implemented the __init__, __len__ and __getitem__ methods. The __getitem__ method currently just returns the review text, but will be updated to return the tokenized review as a tensor
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# dataset.py
|
||||
|
||||
# Takes a row from the csv, tokenizes the review and returns a tensor
|
||||
|
||||
import torch
|
||||
import pandas as pd
|
||||
from torch.utils.data import Dataset
|
||||
|
||||
Reference in New Issue
Block a user