Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unbalanced parenthesis" error #47

Closed
dumitrescustefan opened this issue Oct 31, 2019 · 0 comments · Fixed by #48
Closed

"unbalanced parenthesis" error #47

dumitrescustefan opened this issue Oct 31, 2019 · 0 comments · Fixed by #48
Assignees
Labels

Comments

@dumitrescustefan
Copy link

dumitrescustefan commented Oct 31, 2019

I'm getting this error every once in a while, for example, for text:

'Remuneration Report. 9.8.4(5) Directors? (the Company) See paragraph headed ?Capital structure? in this report. 9.8.4(8) Non-pro-rata allotments of equity for cash (major subsidiaries) N/A 9.8.4(10) Contracts of significance involving a Director N/A 9.8.4(11) Contracts of significance involving a controlling shareholder N/A 9.8.4(12) Waivers of dividends N/A 9.8.4(13) Waivers of future dividends N/A 9.8.4(14) Agreement with a controlling shareholder (LR 9.2.2.AR(2)(a)) See Corporate'

I get: unbalanced parenthesis at position 14

This is how I instantiate and run:
segmenter = pysbd.Segmenter(language="en", clean=True, doc_type="pdf")
sentences = segmenter.segment(txt)

where txt is the string above.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants