Skip to content

Instantly share code, notes, and snippets.

View smanceau's full-sized avatar

Sébastien Manceau smanceau

View GitHub Profile
from collections import OrderedDict
import numpy as np
import spacy
from spacy.lang.en.stop_words import STOP_WORDS
nlp = spacy.load('en_core_web_sm')
class TextRank4Keyword():
"""Extract keywords from text"""