Bug fix get_span.

This commit is contained in:
Edward Betts 2018-05-31 12:40:41 +01:00
parent b57df6df6c
commit f46fb3d4cc

View file

@ -22,7 +22,7 @@ def get_span(text, url, start, length):
'url': url, 'url': url,
'start': start, 'start': start,
'length': length, 'length': length,
'text': text[url][start:start + length] 'text': text[url]['text'][start:start + length]
} }
def get_urls(spans): def get_urls(spans):