Rohit

Results 6 comments of Rohit

`apt install dash ` didnt work. I opened the .sh file the shebang say it required sh interpretor `GNU nano 3.2 kuburan-repo.sh #!/data/data/com.termux/files/usr/bin/sh` But in `$PREFIX/usr/bin` sh is symlink to...

`julia> WordTokenizers.split_sentences("This is a sentence. ")` `SubString{String}["This is a sentence.", ""]` How about filtering the "" elements from the array?

`sentences = replace(sentences, r"([?!.])\s" => Base.SubstitutionString("\\1\n"))` The problem is in this line. The regex is working fine but while SubstitutionString it putting the `\n` which is needed if we have...

`julia>WordTokenizers.split_sentences(" This is a sentence.Laugh Out Loud. Keep coding. No. Yes! True! ohh!ya! me too. ")` `7-element Array{SubString{String},1}:` `" This is a sentence.Laugh Out Loud."` `"Keep coding."` `"No."` ` "Yes!"`...

I would like to go with option 2 because it's cleaner and compact. and I think this particular case issue is solved.

`>>> from nltk.tokenize import sent_tokenize` `>>> text = " This is a sentence.Laugh Out Loud. Keep coding. No. Yes! True! ohh!ya! me too. "` `>>> sent_tokenize(text)` `[' This is a...