All Projects → Twice22 → Cs224n Solutions

Twice22 / Cs224n Solutions

Solutions for CS224n course from Stanford University: Natural Language Processing with Deep Learning

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cs224n Solutions

Awesome Text Summarization
The guide to tackle with the Text Summarization
Stars: ✭ 990 (+1962.5%)
Mutual labels:  natural-language-processing
Style Transfer In Text
Paper List for Style Transfer in Text
Stars: ✭ 1,030 (+2045.83%)
Mutual labels:  natural-language-processing
Greynir
The greynir.is natural language processing website for Icelandic
Stars: ✭ 47 (-2.08%)
Mutual labels:  natural-language-processing
Blocks
Blocks World -- Simulator, Code, and Models (Misra et al. EMNLP 2017)
Stars: ✭ 39 (-18.75%)
Mutual labels:  natural-language-processing
Ludwig
Data-centric declarative deep learning framework
Stars: ✭ 8,018 (+16604.17%)
Mutual labels:  natural-language-processing
Nagisa Tutorial Pycon2019
Code for PyCon JP 2019 talk "Python による日本語自然言語処理 〜系列ラベリングによる実世界テキスト分析〜"
Stars: ✭ 46 (-4.17%)
Mutual labels:  natural-language-processing
Ml Classify Text Js
Machine learning based text classification in JavaScript using n-grams and cosine similarity
Stars: ✭ 38 (-20.83%)
Mutual labels:  natural-language-processing
Cdqa Annotator
⛔ [NOT MAINTAINED] A web-based annotator for closed-domain question answering datasets with SQuAD format.
Stars: ✭ 48 (+0%)
Mutual labels:  natural-language-processing
Sangita
A Natural Language Toolkit for Indian Languages
Stars: ✭ 43 (-10.42%)
Mutual labels:  natural-language-processing
Pujangga
Pujangga - Indonesian Natural Language Processing Tool with REST API, an Interface for InaNLP and Deeplearning4j's Word2Vec
Stars: ✭ 47 (-2.08%)
Mutual labels:  natural-language-processing
Textrank
TextRank implementation for Python 3.
Stars: ✭ 1,008 (+2000%)
Mutual labels:  natural-language-processing
Textblob
Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
Stars: ✭ 7,991 (+16547.92%)
Mutual labels:  natural-language-processing
Py Nltools
A collection of basic python modules for spoken natural language processing
Stars: ✭ 46 (-4.17%)
Mutual labels:  natural-language-processing
Coursera Natural Language Processing Specialization
Programming assignments from all courses in the Coursera Natural Language Processing Specialization offered by deeplearning.ai.
Stars: ✭ 39 (-18.75%)
Mutual labels:  natural-language-processing
Stocksight
Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
Stars: ✭ 1,037 (+2060.42%)
Mutual labels:  natural-language-processing
Language Modelling
Generating Text using Deep Learning in Python - LSTM, RNN, Keras
Stars: ✭ 38 (-20.83%)
Mutual labels:  natural-language-processing
Biomedicus
Code for the old version of BioMedICUS, for the new version see the biomedicus3 repository.
Stars: ✭ 45 (-6.25%)
Mutual labels:  natural-language-processing
Mtnt
Code for the collection and analysis of the MTNT dataset
Stars: ✭ 48 (+0%)
Mutual labels:  natural-language-processing
Spacy Lookups Data
📂 Additional lookup tables and data resources for spaCy
Stars: ✭ 48 (+0%)
Mutual labels:  natural-language-processing
Exemplar
An open relation extraction system
Stars: ✭ 46 (-4.17%)
Mutual labels:  natural-language-processing

CS224n: Natural Language Processing with Deep Learning

These past weeks I've spent several weeks on the CS224n course from Stanford University. Here are my solutions to the assignments. These solutions are for the 2017 version of the course.

Installation

  1. Install Anaconda
  2. go to assignmentX where X is either 1, 2, 3 using a Terminal:
    $ cd \path\to\assignment1
    
  3. create a python 2.7 environnment using
    $ conda env -n cs224n python=2.7 anaconda
    
  4. activate your environment using (add source before activate if you're working with Linux/Mac)
    $ activate cs231n
    
  5. install the dependencies using requirements.txt
    $ pip install -r requirements.txt
    
  6. Don't forget to deactivate your environment when you're done (add source before deactivate if you're on Linux/Mac)
    $ deactivate cs224n
    

Issues

If you're working on windows you won't be able to do assignment 2 because the code is for Python 2.7 and TensorFlow is only available with Python 3.5 on windows (at the time I'm writting these lines). So you will need to create another environment for TensorFlow using:

  1. create a python 3.5 environnment using
    $ conda env -n tensorflow python=3.5 anaconda
    
  2. activate your environment using (add source before activate if you're working with Linux/Mac)
    $ activate tensorflow
    
  3. install the dependencies using requirements.txt
    $ pip install -r requirements.txt
    
  4. install TensorFlow (you can also install tensorflow-gpu for the gpu support)
    $ pip install tensorflow
    

then you need to convert all the python files from Python 2 to Python 3. To do so you can simply use 2to3 which is a script included in anaconda to convert Python file from version 2 to version 3 automatically. Simply do:

Assignment 3

If you're using my files you will need to use Python 3 (on Windows TensorFlow is not compatible with Python 2). Yet, if you want to convert the files from assignment 3 to Python 3, beside using 2to3, you will need to:

replace line 105 from data_util.py to:

with open(os.path.join(path, "features.pkl"), "wb") as f:

(Just add a b to avoid) "write() argument must be str not bytes" error Also replace line 113 by:

with open(os.path.join(path, "features.pkl"), "rb") as f:

You will also need to replace: tf.nn.rnn_cell.RNNCell to tf.contrib.rnn.core_rnn_cell.RNNCell in files q2_gru_cell.py and q2_rnn_cell.py.

$ 2to3 --output-dir=python3-version/assignment2 -W -n assignment2

Note: If you cloned my repository you won't need to transform the code from Python 2.7 to Python 3.5 as I've already did it

More information

I wrote several blog posts accessible from my website if you want to understand in detail how the code works.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].