Created
June 12, 2020 10:22
-
-
Save itsuncheng/45d7225bcfd58ef6835c270b2e08bf50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Libraries | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import torch | |
# Preliminaries | |
from torchtext.data import Field, TabularDataset, BucketIterator, Iterator | |
# Models | |
import torch.nn as nn | |
from transformers import BertTokenizer, BertForSequenceClassification | |
# Training | |
import torch.optim as optim | |
# Evaluation | |
from sklearn.metrics import accuracy_score, classification_report, confusion_matrix | |
import seaborn as sns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment