This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************* Module nltk | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:183: [W0511(fixme), ] FIXME: override any accidentally imported demo, see https://github.com/nltk/nltk/issues/2116 | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:178: [W0622(redefined-builtin), ] Redefining built-in 'help' | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:30: [C0103(invalid-name), ] Constant name "version_file" doesn't conform to UPPER_CASE naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:89: [C0413(wrong-import-position), ] Import "from nltk.internals import config_java" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:98: [C0413(wrong-import-position), ] Import "import subprocess" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [C0103(invalid-name), _fake_PIPE] Function name "_fake_PIPE" doesn't conform to snake_case naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [W0613(unused-argument), _fake_PIPE] U |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************* Module nltk | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:178: [W0622(redefined-builtin), ] Redefining built-in 'help' | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:30: [C0103(invalid-name), ] Constant name "version_file" doesn't conform to UPPER_CASE naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:89: [C0413(wrong-import-position), ] Import "from nltk.internals import config_java" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:98: [C0413(wrong-import-position), ] Import "import subprocess" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [C0103(invalid-name), _fake_PIPE] Function name "_fake_PIPE" doesn't conform to snake_case naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [W0613(unused-argument), _fake_PIPE] Unused argument 'args' | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [W0613(unused-argument), _fake_PIPE] Unused argument 'kwargs' | |
/Users/liling.tan/fixnltk/n |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************* Module nltk | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:178: [W0622(redefined-builtin), ] Redefining built-in 'help' | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:30: [C0103(invalid-name), ] Constant name "version_file" doesn't conform to UPPER_CASE naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:89: [C0413(wrong-import-position), ] Import "from nltk.internals import config_java" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:98: [C0413(wrong-import-position), ] Import "import subprocess" should be placed at the top of the module | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [C0103(invalid-name), _fake_PIPE] Function name "_fake_PIPE" doesn't conform to snake_case naming style | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [W0613(unused-argument), _fake_PIPE] Unused argument 'args' | |
/Users/liling.tan/fixnltk/nltk/nltk/__init__.py:100: [W0613(unused-argument), _fake_PIPE] Unused argument 'kwargs' | |
/Users/liling.tan/fixnltk/n |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
??? | |
・ | |
・ | |
・ | |
ヽ | |
ヾ | |
ゝ | |
ゝ髷 | |
ゞ | |
〃 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import os.path as op | |
from time import time | |
import dask.dataframe as ddf | |
import dask.array as da | |
from dask import delayed, compute | |
from distributed import Client | |
def make_categorical_data(n_samples=int(1e7), n_features=10): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
DyNet implementation of a sequence labeler (POS taggger). | |
This is a translation of this tagger in PyTorch: https://gist.github.com/hal3/8c170c4400576eb8d0a8bd94ab231232 | |
Basic architecture: | |
- take words | |
- run though bidirectional GRU | |
- predict labels one word at a time (left to right), using a recurrent neural network "decoder" | |
The decoder updates hidden state based on: | |
- most recent word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
PyTorch implementation of a sequence labeler (POS taggger). | |
Basic architecture: | |
- take words | |
- run though bidirectional GRU | |
- predict labels one word at a time (left to right), using a recurrent neural network "decoder" | |
The decoder updates hidden state based on: | |
- most recent word |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ColorPrinter: | |
""" | |
Usage: | |
cprint = ColorPrinter() | |
cprint.cfg('c','m','bux').out('Hello','World!') | |
cprint.rst().out('Bye now...') | |
See: http://stackoverflow.com/a/21786287/472610 | |
See: https://en.wikipedia.org/wiki/ANSI_escape_code | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ColorPrinter: | |
""" | |
Usage: | |
cprint = ColorPrinter() | |
cprint.cfg('c','m','bux').out('Hello','World!') | |
cprint.rst().out('Bye now...') | |
See: http://stackoverflow.com/a/21786287/472610 | |
See: https://en.wikipedia.org/wiki/ANSI_escape_code | |
""" |