Commit 2395a7583e5d4a91615b6fb01fecae833886c15c
1 parent
7c66ebdb
bumped version numbers and dict id/copyright in python wrapper
git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/trunk@355 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing
3 changed files
with
9 additions
and
3 deletions
CMakeLists.txt
... | ... | @@ -4,7 +4,7 @@ project (Morfeusz) |
4 | 4 | |
5 | 5 | set (Morfeusz_VERSION_MAJOR 1) |
6 | 6 | set (Morfeusz_VERSION_MINOR 9) |
7 | -set (Morfeusz_VERSION_PATCH 1) | |
7 | +set (Morfeusz_VERSION_PATCH 2) | |
8 | 8 | set (Morfeusz_VERSION "${Morfeusz_VERSION_MAJOR}.${Morfeusz_VERSION_MINOR}.${Morfeusz_VERSION_PATCH}") |
9 | 9 | set (Morfeusz_LIB_VERSION "${Morfeusz_VERSION}") |
10 | 10 | if (DEFAULT_DICT_NAME) |
... | ... |
morfeusz/wrappers/morfeusz_python.i
... | ... | @@ -308,7 +308,7 @@ BOTH_ANALYSE_AND_GENERATE = _morfeusz2.BOTH_ANALYSE_AND_GENERATE |
308 | 308 | |
309 | 309 | __version__ = _morfeusz2._Morfeusz_getVersion() |
310 | 310 | |
311 | -__copyright__ = _morfeusz2._Morfeusz_getCopyright() | |
311 | +__copyright__ = _morfeusz2._Morfeusz_getCopyright().decode('utf-8') | |
312 | 312 | |
313 | 313 | GENDERS = ['m1', 'm2', 'm3', 'f', 'n1', 'n2', 'p1', 'p2', 'p3'] |
314 | 314 | |
... | ... | @@ -438,6 +438,12 @@ class Morfeusz(_object): |
438 | 438 | if self.expand_tags: |
439 | 439 | interp_tuples = list(expand_interps()) |
440 | 440 | return interp_tuples |
441 | + | |
442 | + def dict_id(self): | |
443 | + return self._morfeusz_obj.getDictID().decode('utf-8') | |
444 | + | |
445 | + def dict_copyright(self): | |
446 | + return self._morfeusz_obj.getDictCopyright().decode('utf-8') | |
441 | 447 | %} |
442 | 448 | |
443 | 449 | %include "std_vector.i" |
... | ... |
morfeusz/wrappers/python/CMakeLists.txt