-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
655 additions
and
795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package timenlp | ||
|
||
import ( | ||
// embed data | ||
_ "embed" | ||
) | ||
|
||
//go:embed resource/regex.txt | ||
var embedPattern string | ||
|
||
//go:embed resource/holi_solar.json | ||
var embedHoliSolar []byte | ||
|
||
//go:embed resource/holi_lunar.json | ||
var embedHoliLunar []byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
package timenlp | ||
|
||
// 范围时间的默认时间点 | ||
// RangeTimeEnum 范围时间的默认时间点 | ||
type RangeTimeEnum int | ||
|
||
const ( | ||
DAY_BREAK RangeTimeEnum = 3 // 黎明 | ||
EARLY_MORNING RangeTimeEnum = 8 // 早 | ||
MORNING RangeTimeEnum = 10 // 上午 | ||
NOON RangeTimeEnum = 12 // 中午、午间 | ||
AFTERNOON RangeTimeEnum = 15 // 下午、午后 | ||
NIGHT RangeTimeEnum = 18 // 晚上、傍晚 | ||
LATE_NIGHT RangeTimeEnum = 20 // 晚、晚间 | ||
MID_NIGHT RangeTimeEnum = 23 // 深夜 | ||
// DAY_BREAK 黎明 | ||
DAY_BREAK RangeTimeEnum = 3 | ||
// EARLY_MORNING 早 | ||
EARLY_MORNING RangeTimeEnum = 8 | ||
// MORNING 上午 | ||
MORNING RangeTimeEnum = 10 | ||
// NOON 中午、午间 | ||
NOON RangeTimeEnum = 12 | ||
// AFTERNOON 下午、午后 | ||
AFTERNOON RangeTimeEnum = 15 | ||
// NIGHT 晚上、傍晚 | ||
NIGHT RangeTimeEnum = 18 | ||
// LATE_NIGHT 晚、晚间 | ||
LATE_NIGHT RangeTimeEnum = 20 | ||
// MID_NIGHT 深夜 | ||
MID_NIGHT RangeTimeEnum = 23 | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.