Skip to content

Commit

Permalink
Merge pull request #952 from VesnaT/c2n_as_corpus
Browse files Browse the repository at this point in the history
CorpusToNetwork: Output Corpus when type=Document
  • Loading branch information
PrimozGodec authored Mar 10, 2023
2 parents ae848dc + 29799b8 commit 9bd6012
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 9bd6012

Please sign in to comment.