Skip to content

Commit

Permalink
completed argument mining demo notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisPiemonte committed Mar 8, 2020
1 parent fd96250 commit 1b9acb4
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 107 deletions.
80 changes: 51 additions & 29 deletions notebooks/argument-mining/reddit.ipynb

Large diffs are not rendered by default.

78 changes: 47 additions & 31 deletions notebooks/argument-mining/stackoverflow.ipynb

Large diffs are not rendered by default.

116 changes: 70 additions & 46 deletions notebooks/argument-mining/twitter.ipynb

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/crawler/viz/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ def __init__(self, graph: Graph, **kwargs) -> None:
self.options = options


def draw(self, ax: SubplotBase) -> None:
def draw(self, ax: SubplotBase, title: str = '') -> None:
"""[summary]
Arguments:
ax {SubplotBase} -- [description]
Keyword Arguments:
title {str} -- [description] (default: {''})
"""
ax.set_title(title, fontsize=16)
pos = nx.spring_layout(self.graph)
if self.options['draw_edge_labels']:
# self.options['edge_labels'] = nx.get_edge_attributes(self.graph, 'weight')
Expand Down

0 comments on commit 1b9acb4

Please sign in to comment.