Skip to content

Instantly share code, notes, and snippets.

View DeepanshKhurana's full-sized avatar
💻
Learning

Deepansh Khurana DeepanshKhurana

💻
Learning
View GitHub Profile
@DeepanshKhurana
DeepanshKhurana / TextRank4Keyword.py
Created April 16, 2019 08:07 — forked from BrambleXu/TextRank4Keyword.py
TextRank for Keyword Extraction
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"""