Skip to content

Instantly share code, notes, and snippets.


Yauhen yauhen-info

Block or report user

Report or block yauhen-info

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Example of a Streamlit app for an interactive Prodigy dataset viewer that also lets you
run simple training experiments for NER and text classification.
Requires the Prodigy annotation tool to be installed:
See here for details on Streamlit:
import streamlit as st
from prodigy.components.db import connect
from prodigy.models.ner import EntityRecognizer, merge_spans, guess_batch_size
hmldd /
Last active Feb 22, 2020
Example of Elasticsearch scrolling using Python client
# coding:utf-8
from elasticsearch import Elasticsearch
import json
# Define config
host = ""
port = 9200
timeout = 1000
index = "index"
alChaCC /
Last active Jan 7, 2020 — forked from tomysmile/
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again:

shagunsodhani / Teaching Machines to Read and
Created Aug 14, 2016
Notes for Teaching Machines to Read and Comprehend paper
View Teaching Machines to Read and

Teaching Machines to Read and Comprehend


  • Build a supervised reading comprehension data set using news corpus.
  • Compare the performance of neural models and state-of-the-art natural language processing model on reading comprehension task.
  • Link to the paper

Reading Comprehension

View Build tensorflow on OSX with NVIDIA CUDA

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.


OS X 10.10 (Yosemite) or newer

marcanuy /
Created Aug 7, 2015
Using Systemd to Make Sure Gunicorn Starts on Boot. As Ubuntu has switched to systemd as its service framework starting in 15.04 for all flavors, this is a migration of the Gunicorn upstart job that appears in "Test Driven Development with Django" (…
# Gunicorn Site systemd service file
Description=Gunicorn server for
ExecStart=$(sitedir)/virtualenv/bin/gunicorn --chdir $(sitedir)/source workouts.wsgi:application --bind unix:/tmp/
derhuerst /
Last active Feb 17, 2020
Installing the Z Shell (zsh) on Linux, Mac OS X and Windows

Installing zsh – the easy way

The Z shell (zsh) is a Unix shell [...]. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.

Z shell – Wikipedia

Read more about ZSH at An Introduction to the Z Shell.

Choose one of the following options.

drorata / gist:146ce50807d16fd4a6aa
Last active Feb 6, 2020
Minimal Working example of Elasticsearch scrolling using Python client
View gist:146ce50807d16fd4a6aa
# Initialize the scroll
page =
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
staltz /
Last active Feb 28, 2020
The introduction to Reactive Programming you've been missing
View Penn Treebank II
You can’t perform that action at this time.