Giter Site home page Giter Site logo

text-comprehension's Introduction

Summarization of the text using RNN

  • comparing of several methods and several neural network architectures on the Amazon Fine Foods Review dataset
  • the results are summarized in Main.ipynb
  • the code needed is in the package text_classifiers
  • using pytextrank

Keyword extraction using TF-IDF

  • this little library shows some results using TF-IDF on a real word dataset

  • the results are summarized in TF-IDFNotebook.ipynb

  • module base.py

    • shows how TF-IDF can be used for querying the dataset
    • utilizes 2 methods : matching score and cosine similarity
  • module dataset_loader.py

  • module document_preprocessor.py

    • main module for text preprocessing
    • with use of libraries : nltk, num2words, numpy performs basic text preprocessing steps such as
      • lowercasing
      • removing punctuation
      • removing apostrophes
      • removing single-letter words
      • removing stop words
      • stemming
      • normalizing numbers to one uniform format
    • it also gives user a possibility of saving all the changes on the disc, which may save time during next preprocessing
  • module document_vectors.py with class StatsKeeper

    • loads preprocessed text and incrementally holds the word document frequency for each word in the corpus
    • class Document holding stats for each document separately, namely
      • tf-idf
      • tf-idf vectorised
      • tf
    • since the class holds all the documents in human readable and also in vectorised form, it is possible to use this class for vector-like operations such as computing cosine-similarity

text-comprehension's People

Contributors

gortibaldik avatar

Stargazers

 avatar  avatar

Watchers

 avatar

text-comprehension's Issues

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.