W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2008

[Bug 5556] distance for sentence/paragraph computation inconsistency

From: <bugzilla@wiggum.w3.org>
Date: Mon, 10 Mar 2008 20:24:04 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JYoXU-0008Vr-KY@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5556

           Summary: distance for sentence/paragraph computation
                    inconsistency
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: zhen.liu@oracle.com
         QAContact: public-qt-comments@w3.org


In section 4.2.4 formal semantics function:
fts:wordDistance() is defined as $tokenInfo2/@startPos - $tokenInfo1/@endPos -1
This is consistent with 4.2.7.9 FTDistance section on how fts:wordDistance() is
invoked with fts:tokenInfo is ordered by ('$fts:tokenInfo/@startPos,
fts:tokenInfo/@endPos).

However, such consistency is not followed for sentence & paragraph computation.
 fts:sentenceDistance() is defined 
as $tokenInfo2/@startSent - $tokenInfo1/@endSent -1 in section 4.2.4.
However, fts:sentenceDistance() is involked in section 4.2.7.9 with
fts:tokenInfo is order by ('$fts:tokenInfo/@startPos, fts:tokenInfo/@endPos)
instead of ($fts:tokenInfo/@startSent, fts:tokenInfo/@endSent).
The same inconsistency applies to paragraph as well. The seciton 4.2.7.9 should
invoke fts:paraDistance() with fts:tokenInfo ordered by
($fts:tokenInfo/@startPara, fts:tokenInfo/@endPara).
Received on Monday, 10 March 2008 20:24:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:36 UTC