mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
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:
@ -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)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user