Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
************* 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.
************* 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.
************* 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.
???
ゝ髷
@alvations
alvations / mean_target_encoding.py
Created September 29, 2017 11:49 — forked from ogrisel/mean_target_encoding.py
Mean target value encoding for categorical variable using dask
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):
@alvations
alvations / dynet-tagger.py
Created August 27, 2017 00:28 — forked from neubig/dynet-tagger.py
A small sequence labeler in DyNet
"""
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
@alvations
alvations / mini_sequence_labeler.py
Created August 22, 2017 00:06 — forked from hal3/mini_sequence_labeler.py
PyTorch implementation of a sequence labeler (POS taggger).
"""
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.
@alvations
alvations / colors.py
Created July 13, 2017 01:10 — forked from sheljohn/colours-old.py
Print with colors in most shells (Python, standalone)
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
"""
@alvations
alvations / colors.py
Created July 13, 2017 01:10 — forked from sheljohn/colours-old.py
Print with colors in most shells (Python, standalone)
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
"""