Giter Site home page Giter Site logo

as2024's Introduction

CodeAThon 2024 Feb

Demo

Checkout the live demo at - https://huggingface.co/spaces/Shiv1729/AS-2024-Demo

image

How to testout the models?

  1. cd into code directory
  2. Install all the packages in pip install -f requirements.txt
  3. Launch Gradio using python model_interface.py

Folder strucutre

  • All the code files are in the code/ directory
  • lyrics_generator has the code related to generating the lyrics
  • sentiment_classifier has the files related to classifying the song lyrics.
  • Each folder has scripts, notebooks, embeddings subfolder.
    • scripts - python scripts belonging to each algorithm.
    • notebooks - notebooks which were used to train the models.
    • embeddings - saved pickle state of the model objects, these pickle files are used while inferencing the model in Gradio.

Predictions

  • Find the predicted label for Spotify dataset inside code/sentiment_classifier/results
  • spotify_classification_kmeans.csv - KMeans predictions
  • spotify_classification_nn.csv - Neural network predictions

Tensorboard

  • You can checkout the experiment logs by launching tensorboard session inside sentiment_classifier and lyrics_generator image

Libraries used.

NumPy – For implementing the algorithms. Pandas – Data processing Gensim – For loading the pre-trained word2vec algorithms. NLTK – For processing the text (tokenization, lemmatization, POS tagging) Tensorboard – For experiment tracking

Note:

  • As mentioned before for faster inference the models are saved in pickle file state and to be reused in inferencing.
  • When you first run the "python code/model_interface.py", I download the word2vec pre-trained embeddings, this can be time consuming as it needs to download the files for the first time. This may take anywhere between 3-4 minutes in the first run, subsequently it would take 45 seconds to launch the Gradio interface.

as2024's People

Contributors

auctionsoftwarecodeathon avatar gojo1729 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

as2024's Issues

Sentiment analysis

  1. Use clustering technique on the word vectors to cluster into different genres.

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.