Giter Club home page Giter Club logo

preprocess_nlp_mikelakoju's Introduction

NLP Preprocessing Text Python Package

Natural language processing (NLP) is a subfield of linguistics, computer science, and artificial intelligence concerned with the interactions between computers and human language, in particular how to program computers to process and analyze large amounts of natural language data (Source: Wikipedia).

This Package is Prepared by: Dr Mike Lakoju

Install

pip install git+ssh://[email protected]/mikelakoju/preprocess_nlp_mikelakoju.git

Uninstall

pip uninstall preprocess_nlp_mikelakoju

General Feature Extraction

  • Word counts get_wordcounts(x)
  • Characters count get_charcounts(x)
  • Average characters per word get_avg_wordlength(x)
  • Stop words count get_stopwords_counts(x)
  • Count #HashTags and @Mentions get_hashtag_counts(x) & get_mentions_counts(x)
  • If numeric digits are present in twitts get_digit_counts(x)
  • Upper case word counts get_uppercase_counts(x)

Preprocessing and Cleaning

  • Contraction to Expansion cont_exp(x)
  • Emails removal and counts get_emails(x) & remove_emails(x)
  • URLs removal and counts get_urls(x) & remove_urls(x)
  • Removal of RT remove_rt(x)
  • Removal of Special Characters remove_special_chars(x)
  • Removal of multiple spaces
  • Removal of HTML tags remove_html_tags(x)
  • Removal of accented characters remove_accented_chars(x)
  • Removal of Stop Words remove_stopwords(x)
  • Conversion into base form of words make_base(x)
  • Common Occuring words Removal remove_common_words(x, freq, n=20)
  • Rare Occuring words Removal remove_rarewords(x, freq, n=20)
  • Spelling Correction spelling_correction(x)

preprocess_nlp_mikelakoju's People

Contributors

mikelakoju avatar

Watchers

James Cloos avatar  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.