Skip to content

Commit

Permalink
Test storing internally processed tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Jul 9, 2024
1 parent 02f6c3c commit d9132d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orangecontrib/text/tests/test_bowvectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ def test_empty_tokens(self):

self.assertIs(corpus, bag_of_words)

def test_store_tokens(self):
corpus = Corpus.from_file('deerwester')
self.assertFalse(corpus.has_tokens())

bag_of_words = BowVectorizer().transform(corpus, copy=False)
self.assertTrue(bag_of_words.has_tokens())

def test_domain(self):
vect = BowVectorizer()
corpus = Corpus.from_file('deerwester')
Expand Down

0 comments on commit d9132d6

Please sign in to comment.