text_html_output_2.png text_html_output_1.png text_plain_output_2.png text_plain_output_1.png
import pandas as pd

import pathlib

train_path = '../input/sentimentdatasets/testStackOverFlow.csv'
tr_path = pathlib.Path(train_path)
if tr_path.exists():
    train_df = pd.read_csv(train_path, encoding='utf-16', sep=';', header=None)
    print('Train path set.')
else:
    raise SystemExit('Train path does not exist.')
model_path = '../input/models/model.h5'
mo_path = pathlib.Path(model_path)
if mo_path.exists():
    print('Model path set.')
else:
    raise SystemExit('Model path does not exist.')
data_path = '../input/sentimentdatasets/github_gold.csv'
da_path = pathlib.Path(data_path)
if da_path.exists():
    test_df = pd.read_csv(data_path, sep=';', header=0)
    print('Data path set.')
else:
    raise SystemExit('Data path does not exist.')