Coder Social home page Coder Social logo

nlp-tutorial's Introduction

Tutorial: Introduction to NLP with Python

The Tutorial will give you a basic introduction to Natural Language Processing. Diskussed topics are: pre-processing the text, different representations as vectorization of words, training a ML model on text data.

The code is written in python. It is preferrable to use python3.6, since the library dependencies have been verified with v3.6. Other higher versions also should work fine.

It is highly recommended to use virtualenv for installing packages, as it won't disturb your existing package versions. You could also try conda, if you are comfortable with it.

Installation instructions:

  1. Install python, if you don't have it yet.

  2. Open powershell/cmd/conemu of your choice.

  3. Check virtualenv -v. If the package is not installed, execute pip install virtualenv

  4. Create a virtual environment. virtualenv -p python env36 (Make sure python points to python3 not python2)

  5. Activate the environment. env36\Scripts\activate

  6. Clone this repository. git clone https://github.com/chmodsss/nlp-tutorial

  7. Enter the folder. cd nlp-tutorial

  8. Install the requirements. pip install -r requirements.txt

  9. After installation, execute jupyter notebook

  10. Now the notebooks are up and running in your browser at localhost:8888

NLTK packages

NLTK library needs some pre-built models to be to loaded to execute certain functions

Open a python interpreter and execute the following commands.

> import nltk

> nltk.download('punkt')

> nltk.download('wordnet')

nlp-tutorial's People

Contributors

chmodsss avatar dependabot[bot] avatar sciphie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.