Skip to content

Commit

Permalink
udpipe: fix pickling udpipe model
Browse files Browse the repository at this point in the history
  • Loading branch information
s-alexey committed Jul 5, 2019
1 parent ffeb7e4 commit ac534fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orangecontrib/text/preprocess/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ def language(self):
def language(self, value):
self._language = value
self.model = None

def __getstate__(self):
return {'language': self.language}

def __setstate__(self, state):
self.language = state['language']

0 comments on commit ac534fa

Please sign in to comment.