Skip to content

NameError: name 't_class' is not defined #1

@ml-nic

Description

@ml-nic

Hello

first of all thank you for implementing this paper.
Everything of your code run without an error.
But if I want to run the last file "python Training_Fine_Classification.py"
I got the following error:

Training_Fine_Classification.py 
training.txt
Traceback (most recent call last):
  File "Training_Fine_Classification.py", line 175, in <module>
    print(t_class)
NameError: name 't_class' is not defined

In this file are many lines which are commented out, so I tried to uncomment them and got the following error after I fix the wrong Indentation:
Traceback (most recent call last): File "Training_Fine_Classification.py", line 147, in <module> X=hstack((X_words,X_POS)) File "/home/nicolas/Desktop/ML/brmson/ENV/local/lib/python2.7/site-packages/scipy/sparse/construct.py", line 458, in hstack return bmat([blocks], format=format, dtype=dtype) File "/home/nicolas/Desktop/ML/brmson/ENV/local/lib/python2.7/site-packages/scipy/sparse/construct.py", line 579, in bmat raise ValueError(msg) ValueError: blocks[0,:] has incompatible row dimensions. Got blocks[0,1].shape[0] == 11, expected 1.

It would be nice if you could help me on this and if you could write a bit more on the Readme, what every file does and if the results of the paper could be reached.

Regards
Nic

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