Skip to content

Commit

Permalink
CorpusToNetwork: Output Corpus when type=Document
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Mar 10, 2023
1 parent ae848dc commit 29799b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions orangecontrib/text/corpus_to_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def __init__(self, corpus: Corpus) -> None:
self.document_network = None
self.word2ind = None
self.word_freqs = None
self.document_items = Table(corpus.domain,
corpus.X,
corpus.Y,
corpus.metas)
self.document_items = corpus.copy()
self.word_items = None
self.num_ngrams = 0
self.last_called_nodes = True
Expand Down

0 comments on commit 29799b8

Please sign in to comment.