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

Punctuation removed even with clean turned off #60

Open
echan00 opened this issue Sep 3, 2019 · 0 comments
Open

Punctuation removed even with clean turned off #60

echan00 opened this issue Sep 3, 2019 · 0 comments

Comments

@echan00
Copy link

echan00 commented Sep 3, 2019

See example below, when 'clean' parameter is 'false', the asterisk after cat is still removed

pry(main)> s = "I am a dog. Cat.*"
=> "I am a dog. Cat.*"

pry(main)> ps = PragmaticSegmenter::Segmenter.new(text: s, language: 'en', clean: false)
=> #<PragmaticSegmenter::Segmenter:0x00007fdf5d6890e0
 @doc_type=nil,
 @language="en",
 @language_module=PragmaticSegmenter::Languages::English,
 @text="I am a dog. Cat.*">

pry(main)> segments = ps.segment
=> ["I am a dog.", "Cat."]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant