mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Add french language and upgrade stanford-nlp to 4.0.0
This commit is contained in:
@ -12,22 +12,30 @@ object TextAnalyserSuite extends SimpleTestSuite {
|
||||
val expect = Vector(
|
||||
NerLabel("Derek", NerTag.Person, 0, 5),
|
||||
NerLabel("Jeter", NerTag.Person, 6, 11),
|
||||
NerLabel("Treesville", NerTag.Person, 27, 37),
|
||||
NerLabel("Elm", NerTag.Misc, 17, 20),
|
||||
NerLabel("Ave.", NerTag.Misc, 21, 25),
|
||||
NerLabel("Treesville", NerTag.Misc, 27, 37),
|
||||
NerLabel("Derek", NerTag.Person, 68, 73),
|
||||
NerLabel("Jeter", NerTag.Person, 74, 79),
|
||||
NerLabel("Treesville", NerTag.Location, 95, 105),
|
||||
NerLabel("Elm", NerTag.Misc, 85, 88),
|
||||
NerLabel("Ave.", NerTag.Misc, 89, 93),
|
||||
NerLabel("Treesville", NerTag.Person, 95, 105),
|
||||
NerLabel("Leaf", NerTag.Organization, 144, 148),
|
||||
NerLabel("Chief", NerTag.Organization, 150, 155),
|
||||
NerLabel("of", NerTag.Organization, 156, 158),
|
||||
NerLabel("Syrup", NerTag.Organization, 159, 164),
|
||||
NerLabel("Production", NerTag.Organization, 165, 175),
|
||||
NerLabel("Old", NerTag.Organization, 176, 179),
|
||||
NerLabel("Sticky", NerTag.Organization, 180, 186),
|
||||
NerLabel("Pancake", NerTag.Organization, 187, 194),
|
||||
NerLabel("Company", NerTag.Organization, 195, 202),
|
||||
NerLabel("Maple", NerTag.Location, 207, 212),
|
||||
NerLabel("Lane", NerTag.Location, 213, 217),
|
||||
NerLabel("Forest", NerTag.Location, 219, 225),
|
||||
NerLabel("Maple", NerTag.Organization, 207, 212),
|
||||
NerLabel("Lane", NerTag.Organization, 213, 217),
|
||||
NerLabel("Forest", NerTag.Organization, 219, 225),
|
||||
NerLabel("Hemptown", NerTag.Location, 239, 247),
|
||||
NerLabel("Little", NerTag.Organization, 347, 353),
|
||||
NerLabel("League", NerTag.Organization, 354, 360),
|
||||
NerLabel("Leaf", NerTag.Person, 276, 280),
|
||||
NerLabel("Little", NerTag.Misc, 347, 353),
|
||||
NerLabel("League", NerTag.Misc, 354, 360),
|
||||
NerLabel("Derek", NerTag.Person, 1117, 1122),
|
||||
NerLabel("Jeter", NerTag.Person, 1123, 1128)
|
||||
)
|
||||
@ -40,7 +48,7 @@ object TextAnalyserSuite extends SimpleTestSuite {
|
||||
val expect = Vector(
|
||||
NerLabel("Max", NerTag.Person, 0, 3),
|
||||
NerLabel("Mustermann", NerTag.Person, 4, 14),
|
||||
NerLabel("Lilienweg", NerTag.Location, 16, 25),
|
||||
NerLabel("Lilienweg", NerTag.Person, 16, 25),
|
||||
NerLabel("Max", NerTag.Person, 77, 80),
|
||||
NerLabel("Mustermann", NerTag.Person, 81, 91),
|
||||
NerLabel("Lilienweg", NerTag.Location, 93, 102),
|
||||
|
Reference in New Issue
Block a user