Skip to content

Instantly share code, notes, and snippets.

View ethanjperez's full-sized avatar

Ethan Perez ethanjperez

View GitHub Profile
@ethanjperez
ethanjperez / test1.py
Last active June 24, 2023 21:54
Test Files
print('1')
@ethanjperez
ethanjperez / data.py
Created April 8, 2021 19:27
PyTorch Data Loading Utilities
import os
import json
import torch
from tqdm import tqdm
from torch.utils.data import Dataset
class Dictionary(object):
def __init__(
This file has been truncated, but you can view the full file.
{"tokens": ["if", "i", "finished", "high", "school", "i", "would", "probably", "know", "how", "to", "be", "more", "fit", "."]}
{"tokens": ["do", "you", "like", "your", "nursing", "job", "?"]}
{"tokens": ["nope", "and", "no", "kids", "either", ".", "i", "love", "my", "horses", "like", "kids", "."]}
{"tokens": ["i", "love", "old", "films", ".", "bogie", "is", "one", "of", "my", "favorites", "."]}
{"tokens": ["i", "have", "always", "wanted", "to", "live", "on", "a", "farm", ".", "i", "like", "to", "grow", "food", "."]}
{"tokens": ["i", "try", "to", "go", "to", "the", "gym", "every", "once", "in", "a", "while", "."]}
{"tokens": ["hey", "are", "you", "still", "there", "?"]}
{"tokens": ["wow", "someone", "who", "helps", "others", "like", "me", "and", "vegan", "amazing", "."]}
{"tokens": ["i", "was", "wondering", "if", "you", "have", "any", "advice", "on", "getting", "rid", "of", "spiders", "inside", "."]}
{"tokens": ["writing", "is", "my", "work", ",", "so", "i", "cant", "get", "out", "of", "it", "if", "i", "tried"
@ethanjperez
ethanjperez / evidence.tsv
Last active September 9, 2019 18:15
Evidence
Evidence Model's Answer People's Answer
A lighted cigarette thrown on dry grass can start a fire. by cigarette by cigarette
Sometimes, though, a fire can start on its own. on their own on their own
That's why farmers cut and store their hay when it's dry. by dry grass by dry grass
Many big fires are caused by people's carelessness. by carelessness by carelessness