Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions stripnet/stripnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,9 @@ def fit_transform(self,
self.text = text
self.remove_isolated_nodes = remove_isolated_nodes

if max_connections:
self.max_connections = max_connections
else:
self.max_connections = utils.calc_max_connections(
len(self.text), 1)
self.max_connections = max_connections or utils.calc_max_connections(
len(self.text), 1
)
Comment on lines -234 to +236
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function StripNet.fit_transform refactored with the following changes:


logger.info('========== Step1: Calculating Embeddings ==========')
self.embeddings = self.embedding_gen(self.text)
Expand Down