Re: [LogiLogi-list] About my task: sorting
Status: Beta
Brought to you by:
wybow
|
From: Wybo W. <wy...@lo...> - 2006-11-10 16:30:47
|
> Hi,
>
> By far I've set up all things, and it works.
> I've read the codes of link,link-part and concept model. But still I'm not clear about my task.
> Because I don't understand exactly the meaning of link, link-part and concept and the relationship between them.
> So would you please tell me more about the three things and my task? ^-^
Hereby, and it's all my pleasure to make these things clearer:
A link like 'botanics/bush,s2' consist of multiple link-parts, like
'botanics' and 'bush,s2'. A link-part consists of a word, like
'botanics' in the case of the first and 'bush' for the second, and
optionally a concept, like the one denoted by the second sense
(',s2') of the word 'bush'.
In order for links to be sortable, their link-parts should be
sortable, and in order for link-parts to be sortable words and
word-concept combinations should be sortable.
To help you to get started I already added a sense_for(word) method to
the Concept class, and I updated the <=>-operator in link_part to use
this method.
So it now comes down to making senses sortable (by their
sense-number), and testing & reviewing the sort-methods in link,
link-part, word, and sense...
And for the broader picture: Link-sorting is neccesary for listing
links, for example incoming links, and links that are no longer tied
to a specific part in the text of a new logi-version (because that
part of the text was removed).
We might also decide to sort links, instead of ordering them by the
score of their logis if multiple links are behind one word (for the
first release of Manta).
Wybo
> jennifer
|