Skip to content

Instantly share code, notes, and snippets.

🌏
NLP

Yauhen yauhen-info

🌏
NLP
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
View streamlit_prodigy.py
"""
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: https://prodi.gy
See here for details on Streamlit: https://streamlit.io.
"""
import streamlit as st
from prodigy.components.db import connect
from prodigy.models.ner import EntityRecognizer, merge_spans, guess_batch_size
@hmldd
hmldd / scroll.py
Last active Feb 22, 2020
Example of Elasticsearch scrolling using Python client
View scroll.py
# coding:utf-8
from elasticsearch import Elasticsearch
import json
# Define config
host = "127.0.0.1"
port = 9200
timeout = 1000
index = "index"
@alChaCC
alChaCC / brew-java-and-jenv.md
Last active Jan 7, 2020 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac
View brew-java-and-jenv.md

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
shagunsodhani / Teaching Machines to Read and Comprehend.md
Created Aug 14, 2016
Notes for Teaching Machines to Read and Comprehend paper
View Teaching Machines to Read and Comprehend.md

Teaching Machines to Read and Comprehend

Introduction

  • 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 support.md

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.

Requirements

OS X 10.10 (Yosemite) or newer

@marcanuy
marcanuy / gunicorn-SITENAME-staging.example.com.service
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" (http://chimera.labs.oreilly.com/books/1234000000754/ch08.html#_using_upstart_to_make_sure_gunicorn…
View gunicorn-SITENAME-staging.example.com.service
# Gunicorn Site systemd service file
[Unit]
Description=Gunicorn server for SITENAME-staging.example.com
After=network.target
After=syslog.target
Environment=sitedir=/Development/sites/SITENAME-staging.example.com
ExecStart=$(sitedir)/virtualenv/bin/gunicorn --chdir $(sitedir)/source workouts.wsgi:application --bind unix:/tmp/SITENAME-staging.example.com.socket
Restart=on-failure
@derhuerst
derhuerst / intro.md
Last active Feb 17, 2020
Installing the Z Shell (zsh) on Linux, Mac OS X and Windows
View intro.md

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