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
Xft2 | |
android | |
aspell | |
aspell-dict-en | |
auctex | |
autoconf | |
automake | |
bash | |
bash-completion | |
bzip2 |
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
import pandas as pd | |
from gensim.models.word2vec import Word2Vec | |
words = pd.read_csv('wordsim.txt', header=None, names=('word1', 'word2', 'phonetic similarity')) | |
model = Word2Vec.load_word2vec_format('/GoogleNews-vectors-negative300.bin', binary=True) | |
def similarity(r): | |
try: |
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
from colorsys import rgb_to_hls, hls_to_rgb | |
import random | |
def colors(): | |
r, g, b = 1, 0, 0 | |
h, l, s = rgb_to_hls(r, g, b) | |
while True: |
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
[] | |
bin = ../../bin | |
corpora = %{bin}/corpora | |
fowler_corpora_py = %{bin}/fowler.corpora-py | |
bnc_corpus = bnc+ccg://${PWD}/CCG_BNC_v1 | |
# Get the wordsim353 similarity dataset | |
[data/wordsim353.csv] | |
recipe = |
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
def words(path): | |
with open(path) as f: | |
for line in f: | |
for word in line.strip().split(): | |
yield ''.join(filter(str.isalpha, word.lower())) | |
def recursive(word, dictionary): | |
if not word: | |
return |
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
p = nltk.parse.malt.MaltParser( | |
bin='/Users/dimazest/qmul/tools/parts/malt-1.7.2/dist/maltparser-1.7.2/maltparser-1.7.2.jar', | |
mco='engmalt.linear-1.7', | |
working_dir='/Users/dimazest/qmul/tools/sw/', | |
additional_java_args=['-Xmx512m'], | |
) | |
p.parse('a man runs'.split()).tree( |
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
[circus] | |
statsd = True | |
httpd = True | |
httpd_host = localhost | |
httpd_port = 8081 | |
[watcher:poultry] | |
cmd = ./poultry filter -c poultry.cfg -s twitter://filter -v | |
singleton = True | |
stop_children = True |
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
[rewrites] | |
github = | |
url ~ ^https://github.com/ | |
git@github.com: | |
kind = git |
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
# $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $ | |
# | |
# By Nicholas Marriott. Public domain. | |
# | |
# This configuration file binds many of the common GNU screen key bindings to | |
# appropriate tmux key bindings. Note that for some key bindings there is no | |
# tmux analogue and also that this set omits binding some commands available in | |
# tmux but not in screen. | |
# | |
# Note this is only a selection of key bindings and they are in addition to the |
NewerOlder