question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect text span start and end returned

See original GitHub issue

Looks like something weird happening in this case, note that the indices of the second text span are incorrect:

>>> seg = pysbd.Segmenter(language='en', clean=False, char_span=True)
>>> seg.segment("1) The first item. 2) The second item.")                                                                                
[TextSpan(sent='1) The first item.', start=0, end=18), TextSpan(sent='2) The second item.', start=0, end=19)] 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nipunsadvilkarcommented, Nov 19, 2019

Should be within pySBD and getting appropriate TextSpan objects

On Tue, Nov 19, 2019, 11:09 PM Daniel King notifications@github.com wrote:

I don’t quite understand, is the solution going to be at the level of the pysbd library? or the level of downstream uses of the pysbd library?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/nipunsadvilkar/pySBD/issues/49?email_source=notifications&email_token=ADS5LCCS6U3QZPSW4IE6RSLQUQQD7A5CNFSM4JJOKMQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEPB74Y#issuecomment-555622387, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADS5LCADOVX5CYNPXX3XVDDQUQQD7ANCNFSM4JJOKMQA .

0reactions
dkarmoncommented, Feb 4, 2020

Is there update on when this issue will be resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Spanned getSpanEnd() returns wrong value
fromHtml to parse some html string, and then going through the spans, I am looking to find the start and end of each...
Read more >
Span · spaCy API Documentation
Create a Span object from the slice span.text[start:end] . Returns None if the character indices don't map to a valid span.
Read more >
HTMLElement.innerText - Web APIs | MDN
The innerText property of the HTMLElement interface represents the rendered text content of a node and its descendants.
Read more >
What Is 'Span' in HTML? - HubSpot Blog
In HTML, the span tag is a generic inline container element. Span tags usually wrap sections of text for styling purposes or for...
Read more >
Python Strings | Python Education - Google Developers
A string literal can span multiple lines, but there must be a backslash ... The slice s[start:end] is the elements beginning at start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found