Skip to content

German ordinal numbers lead to over splitting #28

@nickluger

Description

@nickluger

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. 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions