Skip to content

Commit

Permalink
prototype summarization
Browse files Browse the repository at this point in the history
  • Loading branch information
ceteri committed Nov 4, 2019
1 parent a870866 commit 0dcfc10
Show file tree
Hide file tree
Showing 6 changed files with 508 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
# misc.
graph.png
venv/
nohup.out

# docs -- in progress
docs/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -111,7 +111,7 @@ text = "Compatibility of systems of linear constraints over the set of natural n
# load a spaCy model, depending on language, scale, etc.
nlp = spacy.load("en_core_web_sm")
# add PyTextRank to the spaCy pipline
# add PyTextRank to the spaCy pipeline
tr = pytextrank.TextRank()
nlp.add_pipe(tr.PipelineComponent, name="textrank", last=True)
Expand Down
2 changes: 1 addition & 1 deletion example.py
Expand Up @@ -24,7 +24,7 @@
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging.getLogger("PyTR")

# add PyTextRank into the spaCy pipline
# add PyTextRank into the spaCy pipeline

tr = pytextrank.TextRank(logger=None)
nlp.add_pipe(tr.PipelineComponent, name="textrank", last=True)
Expand Down
8 changes: 3 additions & 5 deletions explain_algo.ipynb
Expand Up @@ -4,11 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Graph Construction\n",
"# Explain PyTextRank: the algorithm\n",
"\n",
"Let's look at how to build a graph from a raw text.\n",
"\n",
"This work is based on \n",
"Let's look at the *TextRank* algorithm used to build a graph from a raw text, and then from that extract the top-ranked phrases. This work is based on \n",
"[\"TextRank: Bringing Order into Text\"](http://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf),\n",
"Rada Mihalcea, Paul Tarau, _Empirical Methods in Natural Language Processing_ (2004)."
]
Expand All @@ -18,7 +16,7 @@
"metadata": {},
"source": [
"---\n",
"First we perform some basic housekeeping for Jupyter and then load `spaCy` ..."
"First we perform some basic housekeeping for Jupyter, then load `spaCy` with a language model for English ..."
]
},
{
Expand Down

0 comments on commit 0dcfc10

Please sign in to comment.