Code Monkey home page Code Monkey logo

psut-nlp-project's Introduction

psut-nlp-project

Note: Conda requirements are for an Ubuntu 18.04 environment.

Code repository for the assignments required in the Natural Language Processing master's course at PSUT.

Assignments

The given 10 txt files contain various Arabic tweets. Each file consists of two columns: tweet ID and tweet string. Most tweets contain unwanted emoji or hashtags which should be excluded first. For some tasks you can consider some files as training data and the remaining files as testing data.

  • Task 1: Select a training data to build a bigram language model that can help you in text sequence generation for sequence data. You should implement a python class with multiple methods to do the following jobs:

    • The class name is LanguageModel.
    • A constructor to get the text file name and open that file.
    • A method called Clean to process the text (Tokenization, Lemmatization)! Don’t remove stop words.
    • A method called LMBigram to build 2-D Language Model Matrix with Laplace smoothing using NLTK. This method saves generated matrix in an instance variable.
    • A method called Run that takes a part of sentence from user and returns the expected next word using the constructed matrix from the previous step.
  • Task 2: Use NLTK and/or Camel libraries to build “Named Entity Extraction” Model that can be used to extract name of person, country, organization, events...etc. The model can be trained on training data and tested on different data.

  • Task 3: Use google BERT word embedding model to build sentiment analysis model.

  • Task 4: Prepare a presentation on an NLP task. (I chose "Topic Modelling" and experimented with the Latent Dirichlet Allocation (LDA) Topic Modeller).

psut-nlp-project's People

Contributors

tamerthamoqa avatar

Watchers

 avatar

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.