From 29799b808e3e94aea24e57b120ead07a02ab2fd0 Mon Sep 17 00:00:00 2001 From: Vesna Tanko Date: Fri, 10 Mar 2023 09:32:28 +0100 Subject: [PATCH] CorpusToNetwork: Output Corpus when type=Document --- orangecontrib/text/corpus_to_network.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/orangecontrib/text/corpus_to_network.py b/orangecontrib/text/corpus_to_network.py index db32dce50..6b521db9f 100644 --- a/orangecontrib/text/corpus_to_network.py +++ b/orangecontrib/text/corpus_to_network.py @@ -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