Bug fix get_span.
This commit is contained in:
parent
b57df6df6c
commit
f46fb3d4cc
|
@ -22,7 +22,7 @@ def get_span(text, url, start, length):
|
|||
'url': url,
|
||||
'start': start,
|
||||
'length': length,
|
||||
'text': text[url][start:start + length]
|
||||
'text': text[url]['text'][start:start + length]
|
||||
}
|
||||
|
||||
def get_urls(spans):
|
||||
|
|
Loading…
Reference in a new issue