Comments (1)
Hi @krsna-sentieo, thanks for using the gem. This is the intended behavior of this library. As this library was developed for segmenting texts used for translation, quotes are kept as one segment even if technically there are multiple grammatical sentences within the segment. This is mentioned in the README under "What do you mean by opinionated?". I'll update the README though to make it more clear that this includes quotations in addition to sentences containing parenthesis.
from pragmatic_segmenter.
Related Issues (20)
- How to add additional rules about Chinese?
- Incorrect segmentation or intended behavior?
- Segmenter modifies the segment HOT 2
- Punctuation removed even with clean turned off
- Language support HOT 1
- How to normalize sentences with different quotation marks?
- `Washington, D.C.` at end of sentence not segmented.
- replace_parens_in_numbered_list() calls scan_lists() twice
- French 3 petit point is not handle.
- pragmatic segmenter not installing HOT 2
- Cannot segment text on Ruby 3
- pragmatic_segmenter installing problem HOT 5
- Unable to segment text. Ruby 3. HOT 1
- Detect paragraph breaks or keep whitespacing? HOT 1
- Golden rule for telephone numbers with letters?
- French à after abbreviation / Min. abbreviations
- Abbreviation for `inches` is segmented, e.g "9 in."
- SyntaxError in `pragmatic_segmenter-0.3.22/lib/pragmatic_segmenter/list.rb` using jruby-9.3.2.0
- German abbreviation "z. B." is split when it shouldn't
- Abbreviations at end of sentences + unknown abbreviations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pragmatic_segmenter.