Skip to content

Error #4

@Maithrii

Description

@Maithrii

C:\Users\Maithri\Desktop\cnn_text_classification-master>python train.py

Parameters:
ALLOW_SOFT_PLACEMENT=True
BATCH_SIZE=64
CHECKPOINT_EVERY=100
DEV_SAMPLE_PERCENTAGE=0.1
DROPOUT_KEEP_PROB=0.5
EMBEDDING_DIM=128
EVALUATE_EVERY=100
FASHION_DATA_FILE=./data/fashion_7000.txt
FILTER_SIZES=3,4,5
FINANCE_DATA_FILE=./data/finance_7000.txt
L2_REG_LAMBDA=0.0
LAW_DATA_FILE=./data/law_7000.txt
LIFESTYLE_DATA_FILE=./data/lifestyle_7000.txt
LOG_DEVICE_PLACEMENT=False
NUM_EPOCHS=200
NUM_FILTERS=128

Loading data...
Traceback (most recent call last):
File "train.py", line 52, in
x_text, y = data_helpers.load_data_and_labels(FLAGS.fashion_data_file, FLAGS.finance_data_file, FLAGS.law_data_file, FLAGS.lifestyle_data_file)
File "C:\Users\Maithri\Desktop\cnn_text_classification-master\data_helpers.py", line 34, in load_data_and_labels
fashion_examples = list(open(fashion_data_file, "r").readlines())
File "C:\Users\Maithri\AppData\Local\Programs\Python\Python35\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 894: character maps to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions