latin-language-toolkit / llt-segmenter Goto Github PK
View Code? Open in Web Editor NEWSegments text into sentences.
License: MIT License
Segments text into sentences.
License: MIT License
jruby breaks with different lookbehind handling.
Let the user decide how many \n might constitute a sentence boundary.
Right now we split after every .
and check if it probably is an abbreviation.
Would it be safer to change this approach? I.e. regarding everything that is one or two characters long and with a trailing .
as abbreviation and add execptions for that rule?
No more ad hoc fixes, especially complete TEI files seem to cause trouble.
while
loop and use something more robust or at least something that doesn't send the service into the land of no returnThe segmenter hangs (or crashes not sure which) with XML that ends with an empty tag.
E.g.
Take the milestone tag at the end away and it returns fine.
the segmenter should ignore punctuation in element names and attribute values.
I wonder if newline_boundary could be combined with an option to ignore all except new lines as the segmentation?
I'm experimenting with a simple UI for creating sentence alignments which allows the user to break up the text into the the chunks they want to align by new lines, in which case I think we might want to just ignore punctuation for the case of segmentation.
I'm not sure of the utility of this though, so for discussion before proceeding.
The segmenter just hangs (or maybe crashes not sure which) with xml content which includes new lines but the newline_boundary isn't set (or is set to something other than 1). It works okay if the xml in the input doesn't have any new lines. I didn't take the time to look at the code for this, but I think maybe we should just not try to calculate segments from new lines at all when the input type is xml. What do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.