[Hejes-devel] [772] fixed regexp in spell.py: get_productive_tips()
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Mon May 27 12:18:20 CEST 2013
Revision: 772
Author: ludanyizs
Date: 2013-05-27 12:18:20 +0200 (Mon, 27 May 2013)
Log Message:
-----------
fixed regexp in spell.py: get_productive_tips()
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/modules/spell.py
Modified: trunk/web2py/applications/helyesiras_webdev/modules/spell.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/spell.py 2013-05-27 09:18:57 UTC (rev 771)
+++ trunk/web2py/applications/helyesiras_webdev/modules/spell.py 2013-05-27 10:18:20 UTC (rev 772)
@@ -269,7 +269,7 @@
# suksuk
if re.match(".*(szt|[^s]t)$", ana.stem): # -t es -szt vegu igek
for morph in ana.morphs:
- if re.match("TP[et][123]", morph.tag):
+ if re.match("TP(e3|t[123])", morph.tag):
pronoun = PRONOUNS[morph.tag]
tip = u"Ő azt akarja, hogy " + pronoun + u" " + unicode(tok, 'utf8') + u"."
return tip
More information about the Hejes-devel
mailing list