Git Product home page Git Product logo

sismetanin / emosense-semeval2019-task3-emocontext Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 11.0 64 KB

Deep-learning system presented in "EmoSence at SemEval-2019 Task 3: Bidirectional LSTM Network for Contextual Emotion Detection in Textual Conversations" at SemEval-2019.

Jupyter Notebook 100.00%
bidirectional-lstm computational-linguistics deep-learning emotion-detection keras keras-models lstm machine-learning neural-network nlp nlp-machine-learning semeval semeval-2019 sentiment-analysis tensorflow word-embeddings word2vec

emosense-semeval2019-task3-emocontext's People

Contributors

sismetanin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emosense-semeval2019-task3-emocontext's Issues

KeyError:'metrics'

121/121 [==============================] - ETA: 0s - loss: 0.7658 - acc: 0.6902Traceback (most recent call last):
File "Jarvis.py", line 208, in
history = model.fit([message_first_message_train, message_second_message_train, message_third_message_train],
File "C:\Users\DELL\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py", line 108, in _method_wrapper
return method(self, *args, **kwargs)
File "C:\Users\DELL\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1137, in fit
callbacks.on_epoch_end(epoch, epoch_logs)
File "C:\Users\DELL\anaconda3\lib\site-packages\tensorflow\python\keras\callbacks.py", line 416, in on_epoch_end
callback.on_epoch_end(epoch, numpy_logs)
File "C:\Users\DELL\anaconda3\lib\site-packages\kutilities\callbacks.py", line 103, in on_epoch_end
self.add_predictions(data if len(data) > 1 else data[0], name=name,
File "C:\Users\DELL\anaconda3\lib\site-packages\kutilities\callbacks.py", line 98, in add_predictions
self.params['metrics'].append(entry)
KeyError: 'metrics'

@sismetanin

Iam getting this error, please help me

unable to open hdf5 file

Hello!

In your code for the emotion detection task (link: https://github.com/sismetanin/emosense-semeval2019-task3-emocontext/blob/master/EmoSense%20at%20SemEval2019%20Task%203%20EmoContext.ipynb)

Did you encounter this error:

OSError: Unable to open file (unable to open file: name = 'models/bidirectional_LSTM_best_weights_0010-0.9125.hdf5', errno = 2, error message = No such file or directory', flags = 0, o_flags = 0)

While running this line [29]:
model.load_weights("models/bidirectional_LSTM_best_weights_0010-0.9125.hdf5")

I've tried !pip install h5py and import h5py but neither helped.

Although I'm getting this error, it doesn't stop the classification report from being created, However, the report I'm getting is entirely different from what you have (see below). I suspect the differences in our reports are due to the above OSError.

f1_e 0.0
precision_e 0.0
recoll_e 0.0
              precision    recall  f1-score   support

           0       0.85      1.00      0.92      2338
           1       0.00      0.00      0.00       142
           2       0.00      0.00      0.00       125
           3       0.00      0.00      0.00       150

    accuracy                           0.85      2755
   macro avg       0.21      0.25      0.23      2755
weighted avg       0.72      0.85      0.78      2755

UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use zero_division parameter to control this behavior.

To solve this, I tried setting zero_division=0 or 1 and neither helped.

Please help if you can! Thanks :)

How long did training phase take on your model?

I saw 197,824,434 parameter and 20 epochs in your jupyter file. Also, in SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text paper mentioned that the training set is contained around 30,000 rows.
I think these are big values, so how long it takes for training in which resource for you?

kutilities module!!!

ModuleNotFoundError: No module named 'kutilities'
Collecting kutilities
ERROR: Could not find a version that satisfies the requirement kutilities (from versions: none)
ERROR: No matching distribution found for kutilities

Also dev and test files are missing
plz HELP!!!!

NameError: name 'embeddings_matrix' is not defined


NameError Traceback (most recent call last)
in
45 return model
46
---> 47 model = buildModel(embeddings_matrix, MAX_SEQUENCE_LENGTH, lstm_dim=64, hidden_layer_dim=30, num_classes=4)

NameError: name 'embeddings_matrix' is not defined

Please help me in this.... @ sismetanin
@sismetanin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.