Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Python 3 repo for CS224n

NotificationsYou must be signed in to change notification settings

Cescfangs/CS224n-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS224n is awesome, the original code of assignments is based on Python 2, I'm a fan of Python 3 though, for those who prefer 3 to 2, feel free to clone or fork this repo, have fun with it!

bug fix(early 2018 version)

Assignment 3:

  • q1_window.py

    WindowModel(NERModel).create_feed_dict(), the defaultdropout should be 0(i.e.keep_prob=1 inTensorFlow by default, we would like to disable droupout when predicting). However if you treatedropout askeep_prob, then there's no tr�ouble.

  • q2_rnn.py

    InRNNModel(NERModel).preprocess_sequence_data(), should passwindow_size=self.config.window_size() callingfeaturize_windows(), or your model will crash if you changewindow_size inConfig.

Progress

  • Assignment 1:

    1. Softmax ✔️
    2. Neural Network Basics ✔️
    3. word2vec ✔️
    4. Sentiment Analysis(I can not fix encoding error in Python3, this was done by Python2) ✔️
  • Assignment 2:

    1. Tensorflow Softmax✔️
    2. Neural Transition-Based Dependency Parsing ✔️
    modeltraining loss(debug)dev UAS(debug)training loss(full)dev UAS(full)
    baseline0.120369.970.070386.68
    + L2 reg0.240266.380.121285.81

    adding L2 regularization hurts the model, for the model is simple(low capacity), regularization actually reduce the capacity of baseline model.

  • Assignment 3:

    1. A window into NER ✔️

      • best score(Entity level P/R/F1): 0.85/0.87/0.86

      • Token-level confusion matrix

        gold\guessPERORGLOCMISCO
        PER296845531865
        ORG9217386788107
        LOC358719311625
        MISC325332105695
        O4043223742617
      • Token-level scores:

        labelaccprecrecf1
        PER0.990.940.940.94
        ORG0.990.880.830.86
        LOC0.990.920.920.92
        MISC0.990.870.830.85
        O0.990.9910.99
        micro0.990.980.980.98
        macro0.990.920.90.91
        not-O0.990.910.890.9
    2. Recurrent neural nets for NER ✔️

    3. Grooving with GRUs (30 points) ✔️

      • best score(Entity level) P/R/F1: 0.87/0.86/0.86

About

A Python 3 repo for CS224n

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp