Project

General

Profile

Bug #493

Feature #466: Lemma lookup

Morphlogical parsing results in redundant rows

Added by Luke Murphey almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
12/26/2012
Due date:
% Done:

100%


Description

Look up προσδοκῶν in Acts 3:5 for an example.

Associated revisions

Revision 285 (diff)
Added by Luke Murphey almost 12 years ago

Uniquefied the list of parses returned with the REST API. Closes #493.

Revision 285 (diff)
Added by Luke Murphey almost 12 years ago

Uniquefied the list of parses returned with the REST API. Closes #493.

Revision 277 (diff)
Added by Luke Murphey almost 12 years ago

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 )

#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.

Also available in: Atom PDF