-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This is a German text containing ordinal numbers. (The original text passed to syntok does not contain \n. Just added for readability here).
Ich habe am 3. Juni Geburtstag.
Jonas ist Fan vom 1. FC Köln, und du?
Meine Eltern haben 6 Kinder.
Dies ist nun der 17. Versuch.
Friedrich II. war der Sohn von Heinrich VI
is split into the following parts:
"Ich habe am 3.",
"Juni Geburtstag.",
"Jonas ist Fan vom 1.",
"FC Köln, und du?",
"Meine Eltern haben 6 Kinder.",
"Dies ist nun der 17.",
"Versuch.",
"Friedrich II. war der Sohn von Heinrich VI",
I understand that this is very difficult to get right in German, where an uppercase word can follow the ordinal number.
Dates like 3. Juni might be maybe detectable, though. Interestingly, the last part does not split at Friedrich II., like all other examples.
Besides that, syntok seems to be a sublime sentence splitter for German, thank you for this. 🙏
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels