[humanities-dev] Shakespeare Annotations

David Chiles dwalterc at gmail.com
Wed Apr 18 16:37:27 UTC 2012


Hi Nick,

I think I did make a mistake, all the annotations occur within one span. Based on the how the original annotations were stored each end XPath should be the same as the start XPath. The start XPath is the correct one.

David 


On Wednesday, April 18, 2012 at 8:42 AM, Nick Stenning wrote:

> On 12 Apr 2012, at 19:43, Andrew Magliozzi <andrew at finalsclub.org (mailto:andrew at finalsclub.org)> wrote:
> 
> > Ah Nick,
> > 
> > I think you have come across one of our "gotchas". I believe our system was done on word count not character count.
> 
> Hi Andrew,
> 
> Words vs. characters isn't the issue here, I'm afraid. The index in
> square brackets refers to the scene, not the character offset within
> the scene, which is the "{start, end}Offset" field, and which David
> has already converted from words to characters. In the below example,
> the "end" property should undoubtedly be "/span[19]", not "/span[20]",
> and while that's easy to correct in this case, I don't want to futz up
> any annotations that actually do span scenes, hence the request for
> David to check over the code.
> 
> Best,
> 
> N
> 
> > {
> > "text": " '\"Hecate\" is also ... scene i). '",
> > "uri": "The Tragedy of Macbeth 7.html",
> > "ranges": [{
> > "start": "/span[19]",
> > "end": "/span[20]",
> > "startOffset": 49,
> > "endOffset": 55
> > }],
> > "quote": " 'HECATE ",
> > "finalsclub_id": 5029
> > }
> > 
> 
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/humanities-dev/attachments/20120418/e4669486/attachment.html>


More information about the humanities-dev mailing list