text_plain_output_1.png
import json

dataset = []
for line in open('/kaggle/input/news-headlines-dataset-for-sarcasm-detection/Sarcasm_Headlines_Dataset.json', 'r'):
    dataset.append(json.loads(line))
    json.load

article_link = []
headline = []
is_sarcastic = []

for item in dataset:
    article_link.append(item['article_link'])
    headline.append(item['headline'])
    is_sarcastic.append(item['is_sarcastic'])

data_len = len(headline)
train_size = round(data_len * 80 / 100)
print(train_size)