Preprocess japanese texts to find dates

Not very efficient, but should work to find the position of dates in
japanese text.
This commit is contained in:
eikek
2021-07-29 01:35:15 +02:00
parent e8348e2809
commit 4af8dd0950
2 changed files with 18 additions and 6 deletions

View File

@ -151,7 +151,7 @@ class DateFindSpec extends FunSuite {
Vector(
NerDateLabel(
LocalDate.of(2021, 7, 21),
NerLabel("2021.7.21", NerTag.Date, 22, 31)
NerLabel("2021.7.21", NerTag.Date, 6, 15)
)
)
)
@ -162,7 +162,7 @@ class DateFindSpec extends FunSuite {
Vector(
NerDateLabel(
LocalDate.of(2021, 7, 21),
NerLabel("2021年7月21", NerTag.Date, 22, 31)
NerLabel("2021年7月21", NerTag.Date, 6, 15)
)
)
)
@ -173,7 +173,7 @@ class DateFindSpec extends FunSuite {
Vector(
NerDateLabel(
LocalDate.of(2021, 7, 21),
NerLabel("2021年7月21", NerTag.Date, 22, 31)
NerLabel("2021年7月21", NerTag.Date, 3, 12)
)
)
)