Skip to content

Instantly share code, notes, and snippets.

@makai281
makai281 / install.md
Created March 26, 2017 08:32 — forked from rmcgibbo/install.md
Scientific Python From Source, with MKL

Scientific Python From Source

This document will walk you through compiling your own scientific python distribution from source, without sudo, on a linux machine. The core numpy and scipy libraries will be linked against Intel MKL for maximum performance.

This procedure has been tested with Rocks Cluster Linux 6.0 (Mamba) and CentOS 6.3.

Compiling Python From Source

@makai281
makai281 / Hierarchical_Softmax.py
Created December 9, 2016 12:30
self-built hierarchical softmax layer in theano . It is adapted from https://github.com/farizrahman4u/huffmax which is writted in keras
# ========================================
# -*- coding: utf-8
# @Time : 2016/12/1 19:15
# @Author : M.K.
# @File : HierarchicalSoftmax.py
# ========================================
import sys
import numpy as np
import theano
import theano.tensor as T

NLTK API to Stanford NLP Tools compiled on 2015-12-09

Stanford NER

With NLTK version 3.1 and Stanford NER tool 2015-12-09, it is possible to hack the StanfordNERTagger._stanford_jar to include other .jar files that are necessary for the new tagger.

First set up the environment variables as per instructed at https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software