Bug #493
Feature #466: Lemma lookup
Morphlogical parsing results in redundant rows
Start date:
12/26/2012
Due date:
% Done:
100%
Associated revisions
Uniquefied the list of parses returned with the REST API. Closes #493.
Uniquefied the list of parses returned with the REST API. Closes #493.
Uniquefied the list of parses returned with the REST API. Closes #493.
History
#1 Updated by Luke Murphey almost 12 years ago
- Subject changed from Morphlogical parsing results is redundant rows to Morphlogical parsing results in redundant rows
#2 Updated by Luke Murphey almost 12 years ago
- Status changed from New to In Progress
#3 Updated by Luke Murphey almost 12 years ago
There are indeed multiple rows. I may need to disambiguate them in the import process and not write duplicate entries.
#4 Updated by Luke Murphey almost 12 years ago
# -*- coding: utf8 -*- from reader import language_tools from reader.models import Work, Division, Verse, WordDescription word = u"\u03C0\u03C1\u03BF\u03C3\u03B4\u03BF\u03BA\u1FF6\u03BD" #"προσδοκῶν" word_lookup = language_tools.normalize_unicode( word.lower() ) descriptions = WordDescription.objects.all().filter( word_form__form=word_lookup )
#5 Updated by Luke Murphey almost 12 years ago
BTW: you can perform Unicode to conversions with http://www.mixesoft.com/unicode_escaped_sequence_to_string_literals_converter.html.
#6 Updated by Luke Murphey almost 12 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Applied in changeset r285.