Skip to content

Commit

Permalink
owpreprocess: load saved normalization settings
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcv committed Sep 3, 2018
1 parent d556bc7 commit 256efb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orangecontrib/text/widgets/owpreprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def __init__(self, master):
items=preprocess.SnowballStemmer.supported_languages)
snowball_box.currentIndexChanged.connect(self.change_language)
self.method_layout.addWidget(snowball_box, self.SNOWBALL, 2)
self.methods[self.SNOWBALL].language = self.snowball_language

self.udpipe_tokenizer_box = QCheckBox("UDPipe tokenizer", self,
checked=self.udpipe_tokenizer)
Expand All @@ -284,6 +285,8 @@ def __init__(self, master):
items=preprocess.UDPipeLemmatizer.supported_languages)
udpipe_box.currentIndexChanged.connect(self.change_language)
self.method_layout.addWidget(udpipe_box, self.UDPIPE, 3)
self.methods[self.UDPIPE].language = self.udpipe_language
self.methods[self.UDPIPE].use_tokenizer = self.udpipe_tokenizer

def change_language(self):
if self.methods[self.SNOWBALL].language != self.snowball_language:
Expand Down

0 comments on commit 256efb0

Please sign in to comment.