Skip to content

Instantly share code, notes, and snippets.

Jack Schultz jackschultz

Block or report user

Report or block jackschultz

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
@jackschultz
jackschultz / article-summarizer.py
Created Aug 30, 2013
Article summarizer written in python.
View article-summarizer.py
import nltk
from nltk.stem.wordnet import WordNetLemmatizer
import string
class SentenceRank(object):
def __init__(self, body, title):
self.body = body
self.sentence_list = nltk.tokenize.sent_tokenize(self.body)[:]
self.title = title
@jackschultz
jackschultz / article-summarizer.clj
Created Aug 30, 2013
Clojure implementation of a semi-naive article summarizer. Takes the url supplied and attempts to find the num-sentences most "valuable" sentences ranked by most words in common with other sentences. To run, throw into Leiningen and download the opennlp binaries.
View article-summarizer.clj
(ns classify.core
(:use [boilerpipe-clj.core]
[opennlp.nlp]
[opennlp.treebank]
[clojure.pprint :only [pprint]]
[opennlp.tools.filters]
[clojure.set]
[stemmer.snowball])
(:gen-class))
You can’t perform that action at this time.