Incorrect text span start and end returned
See original GitHub issueLooks 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:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be within pySBD and getting appropriate TextSpan objects
On Tue, Nov 19, 2019, 11:09 PM Daniel King notifications@github.com wrote:
Is there update on when this issue will be resolved?