Skip to content

Instantly share code, notes, and snippets.

View zahin-mohammad's full-sized avatar

Zahin Mohammad zahin-mohammad

  • Toronto
View GitHub Profile
@zahin-mohammad
zahin-mohammad / neuralcoref_vs_corenlp_coref_annotator.py
Created January 19, 2021 22:39
neuralcoref vs corenlp coref resolution
import os
import neuralcoref
import en_core_web_sm
from stanfordnlp.server import CoreNLPClient
CORENLP_HOST = os.getenv('CORENLP_HOST') or 'localhost'
CORENLP_PORT = os.getenv('CORENLP_PORT') or 9000
CORENLP_URL = f'http://{CORENLP_HOST}:{CORENLP_PORT}'
annotators = 'tokenize, ssplit, pos, lemma, ner, entitymentions, coref, sentiment, openie'
sudo apt install -y zsh
sudo chsh -s /usr/bin/zsh root
sudo chsh -s /usr/bin/zsh $USER
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
echo "source $~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
echo "source $~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
logout

Keybase proof

I hereby claim:

  • I am zahin-mohammad on github.
  • I am zahin_mohammad (https://keybase.io/zahin_mohammad) on keybase.
  • I have a public key ASBSnvrSGnvhSndN5P7BTIXaYc452GI8QMDtZD_JwwN7UQo

To claim this, I am signing this object:

@zahin-mohammad
zahin-mohammad / README-Template.md
Created July 16, 2018 23:51 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites