apmoore1 / semeval

SemEval 2017 task 5 track 2 codebase.
GNU General Public License v3.0
17 stars 7 forks source link

how i run it #2

Closed evanraft closed 5 years ago

evanraft commented 5 years ago

hello ! can you tell my how i can run the code ? when i run the run.py it displays this: Traceback (most recent call last): File "semeval/examples/run.py", line 6, in from semeval.lstms.EarlyStoppingLSTM import EarlyStoppingLSTM ImportError: No module named 'semeval'

apmoore1 commented 5 years ago

Hi,

You need to run it from the top level of the git repository directory like so:

python ./examples/run.py

Also if you then get the following error:

ValueError: numpy.ufunc has the wrong size, try recompiling.

I have updated the requirements file with a fixed version of numpy which should resolve this problem, so just re-install the pips like so:

pip install -r requirements.txt

Hope that helps :slightly_smiling_face: