Registry / ai-ml / detectormorse

detectormorse

JSON →
library0.4.1pypypiunverified

DetectorMorse is a sentence splitter for Portuguese and other languages, version 0.4.1. It detects sentence boundaries in text using a rule-based approach. Release cadence is low; no recent updates.

pip install detectormorse
INSTALL
IMPORT
SIG · DETECTORMORSE
D
detectormorse
ai-mlpythonv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SentenceSplitter
from detectormorse import SentenceSplitter
from detectormorse import SentenceSplitter

Basic usage: create a SentenceSplitter instance and call split on a string.

from detectormorse import SentenceSplitter splitter = SentenceSplitter() text = "Olá! Como vai? Tudo bem." sentences = splitter.split(text) print(sentences)
Debug
Known issues
deprecatedThe original repository (https://github.com/niderhoff/detector-morse) appears unmaintained since 2020. There is a maintained fork at https://github.com/Unstructured-IO/detector-morse.
fix
Consider using the fork from Unstructured-IO for bug fixes and continued support.
affects: <=0.4.1
gotchaSentenceSplitter.split() returns a list of sentences but may include trailing whitespace or empty strings.
fix
Strip results with [s.strip() for s in splitter.split(text) if s.strip()]
affects: all
gotchaThe library's language detection is simplistic; it may mis-split sentences in languages with non-standard punctuation.
fix
Validate output manually or preprocess text to normalize punctuation.
affects: all
Upgrade
Version history
0.4.1latest on PyPI · released Dec 8, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources

No resource links recorded.

detectormorse — pip install detectormorse · libregistry