Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "excludeRules": [
- "\\b(mai mốt|mai này|mai sau|mai kia|không nên|ko nên|không phải|ko phải|không cần|ko cần|chưa cần|chưa phải|ngủ|nghỉ|thời tiết|đã|hôm qua|tối qua|đêm qua|tuần trước|vừa rồi|vừa qua|mấy giờ|mấy h|chưa vậy|có\\b.*\\bkhông|có\\b.*\\bko|có\\b.*\\bk)\\b"
- ],
- "regexRules":[
- {
- "regex":[
- "\\b(sáng|trưa|chiều|tối|đêm)\\b"
- ],
- "regexType":"period_vn"
- },
- {
- "regex":[
- "\\b([0-9]{1,2})[g|h]([0-9]{1,2})(?: phút\\b|ph\\b|p\\b|'|’){0,1}((?: {0,1}[ap]m){0,1})(?:'|’|\\b)",
- "\\b([0-9]{1,2}) giờ ([0-9]{1,2})(?: phút\\b|ph\\b|p\\b|'|’){0,1}((?: {0,1}[ap]m){0,1})(?:'|’|\\b)",
- "\\b([0-9]{1,2}) giờ ()((?: {0,1}[ap]m){0,1})\\b",
- "\\b([0-9]{1,2})(?:(?:(?: )giờ)|h|g)(?: )(rưỡi)((?:(?: )[ap]m){0,1})\\b",
- "\\b([0-9]{1,2})(?: )(rưỡi)((?:(?: )[ap]m){0,1})\\b",
- "\\b([0-9]{1,2}):([0-9]{1,2})(?: phút\\b|ph\\b|p\\b|'|’){0,1}((?: {0,1}[ap]m){0,1})(?:'|’|\\b)",
- "\\b([0-9]{1,2})[g|h]([0-9]{0,2})((?: {0,1}[ap]m){0,1})\\b",
- "\\b([0-9]{1,2})[g|h]([0-9]{1,2})(?: phút\\b|ph\\b|p\\b|'|’){0,1}()(?:'|’|\\b)",
- "\\b([0-9]{1,2})( {0,1})([ap]m)\\b"
- ],
- "regexType":"time_vn"
- },
- {
- "regex":[
- "\\b(thứ(?: )(hai|ba|tư|năm|sáu|bảy|2|3|4|5|6|7))\\b",
- "\\b(t(2|3|4|5|6|7))\\b",
- "\\b(chủ(?: )nhật|cn)\\b"
- ],
- "regexType":"weekday_vn"
- },
- {
- "regex":[
- "\\b(hôm qua|hôm trước|hôm nọ|hôm kia|hôm nay|nay|ngày mai|mai|ngày mốt|ngày kia|đầu tuần|cuối tuần|tuần này|tuần trước|tuần sau|tuần tới)\\b"
- ],
- "regexType":"neartime_vn"
- },
- {
- "regex":[
- "\\b(weekend|this week|last week|today|yesterday)\\b"
- ],
- "regexType":"neartime_en"
- },
- {
- "regex":[
- "\\b([0-9]{1,2}) tháng ([0-9]{1,2}) năm ([0-9]{4,4})\\b",
- "\\b([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4,4})\\b",
- "\\b([0-9]{1,2})\/([0-9]{1,2}) ([0-9]{4,4})\\b",
- "\\b([0-9]{1,2})\/([0-9]{1,2})\\b",
- "\\b([0-9]{1,2}) tháng ([0-9]{1,2})\\b"
- ],
- "regexType":"day_vn"
- },
- {
- "regex":[
- "\\b([0-9]{1,2}) (january|jan|february|feb|march|mar|april|apr|may|june|july|august|aug|september|sept|october|oct|november|nov|december|dec) ([0-9]{4,4})\\b",
- "\\b([0-9]{1,2}) (january|jan|february|feb|march|mar|april|apr|may|june|july|august|aug|september|sept|october|oct|november|nov|december|dec)\\b"
- ],
- "regexType":"day_en"
- },
- {
- "regex":[
- "\\b([0-9]{1,2}) năm ([0-9]{4,4})\\b",
- "\\btháng ([0-9]{1,2})\/([0-9]{4,4})\\b",
- "\\b([0-9]{1,2})\/([0-9]{4,4})\\b",
- "\\btháng ([0-9]{1,2})\\b"
- ],
- "regexType":"month_vn"
- },
- {
- "regex":[
- "\\b(january|jan|february|feb|march|mar|april|apr|may|june|july|august|aug|september|sept|october|oct|november|nov|december|dec)( [0-9]{4,4}){0,1}\\b"
- ],
- "regexType":"month_en"
- },
- {
- "regex":[
- "\\b(năm ngoái|năm nay|[0-9]{4,4})\\b"
- ],
- "regexType":"year_vn"
- },
- {
- "regex":[
- "\\b(this year|last year)\\b"
- ],
- "regexType":"year_en"
- },
- {
- "regex":[
- "\\b(tết|tet|lunar new year)\\b"
- ],
- "regexInfo":{
- "start":"25\/12",
- "calendarType":1,
- "end":"07\/01"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(giỗ tổ|hung king|hung king(?:'|’)s)\\b"
- ],
- "regexInfo":{
- "start":"10\/03",
- "calendarType":1,
- "end":"10\/03"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(trung thu|mid autumn|moon festival)\\b"
- ],
- "regexInfo":{
- "start":"15\/08",
- "calendarType":1,
- "end":"15\/08"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(quốc tế phụ nữ|phụ nữ|women(?:'|’)s day|women day)\\b"
- ],
- "regexInfo":{
- "start":"08\/03",
- "calendarType":0,
- "end":"08\/03"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(phụ nữ việt nam|phụ nữ vn|viet nam women(?:'|’)s day|viet nam women day|vn women(?:'|’)s day|vn women day)\\b"
- ],
- "regexInfo":{
- "start":"20\/10",
- "calendarType":0,
- "end":"20\/10"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(lao động|labor day)\\b"
- ],
- "regexInfo":{
- "start":"01\/05",
- "calendarType":0,
- "end":"01\/05"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(khai giảng|khai trường)\\b"
- ],
- "regexInfo":{
- "start":"05\/09",
- "calendarType":0,
- "end":"05\/09"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(noel|christmas|giáng sinh)\\b"
- ],
- "regexInfo":{
- "start":"24\/12",
- "calendarType":0,
- "end":"25\/12"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(năm mới|new year)\\b"
- ],
- "regexInfo":{
- "start":"31\/12",
- "calendarType":0,
- "end":"01\/01"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(thiếu nhi|children(?:'|’)s day|children day)\\b"
- ],
- "regexInfo":{
- "start":"01\/06",
- "calendarType":0,
- "end":"01\/06"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(nhà giáo|teacher day)\\b"
- ],
- "regexInfo":{
- "start":"20\/11",
- "calendarType":0,
- "end":"20\/11"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(xuân|spring)\\b"
- ],
- "regexInfo":{
- "start":"01\/01",
- "calendarType":0,
- "end":"30\/04"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(hạ|hè|summer)\\b"
- ],
- "regexInfo":{
- "start":"01\/04",
- "calendarType":0,
- "end":"31\/08"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(thu|autumn)\\b"
- ],
- "regexInfo":{
- "start":"01\/08",
- "calendarType":0,
- "end":"30\/11"
- },
- "regexType":"custom"
- },
- {
- "regex":[
- "\\b(đông|winter)\\b"
- ],
- "regexInfo":{
- "start":"01\/11",
- "calendarType":0,
- "end":"31\/01"
- },
- "regexType":"custom"
- }
- ],
- "mappingRules": {
- "chu nhat":1,
- "cn":1,
- "thu hai":2,
- "t2":2,
- "thu 2":2,
- "t3":3,
- "thu 3":3,
- "thu ba":3,
- "t4":4,
- "thu 4":4,
- "thu tu":4,
- "thu nam":5,
- "t5":5,
- "thu 5":5,
- "thu sau":6,
- "t6":6,
- "thu 6":6,
- "thu bay":7,
- "t7":7,
- "thu 7":7,
- "nay":101,
- "hom nay":101,
- "ngay mai":102,
- "mai":102,
- "ngay mot":103,
- "ngay kia":103,
- "hom no":104,
- "hom truoc":104,
- "hom qua":104,
- "hom kia":104,
- "cuoi tuan":105,
- "weekend":105,
- "dau tuan":107,
- "tuan nay":108,
- "this week":108,
- "tuan truoc":109,
- "last week":109,
- "tuan sau":110,
- "tuan toi":110,
- "jan":301,
- "thang 1":301,
- "1":301,
- "january":301,
- "feb":302,
- "thang 2":302,
- "2":302,
- "february":302,
- "thang 3":303,
- "3":303,
- "mar":303,
- "march":303,
- "april":304,
- "apr":304,
- "thang 4":304,
- "4":304,
- "thang 5":305,
- "5":305,
- "may":305,
- "thang 6":306,
- "6":306,
- "june":306,
- "thang 7":307,
- "july":307,
- "7":307,
- "august":308,
- "thang 8":308,
- "aug":308,
- "8":308,
- "thang 9":309,
- "9":309,
- "september":309,
- "sept":309,
- "10":310,
- "oct":310,
- "october":310,
- "thang 10":310,
- "november":311,
- "11":311,
- "thang 11":311,
- "nov":311,
- "dec":312,
- "12":312,
- "thang 12":312,
- "december":312,
- "sang":400,
- "trua":401,
- "chieu":402,
- "toi":403,
- "dem":404,
- "nam nay":501,
- "this year":501,
- "last year":502,
- "nam ngoai":502
- },
- "includeRules": [
- "\\b(nhé|nhá|nha|nghen|nghe|nhớ|nhắc|giúp|họp|nhậu|đi|chơi|cafe|cà phê|gặp|ăn|trà sữa|uống|tham dự|tổ chức|tập trung|có mặt|chốt|phải|báo|nốt|có gì|sang|xuống|lên|gọi|làm|về|khám|nộp|kiểm|chuyển|giao|rước|lấy|giữ|đón|thi|tiêm|thăm|về|trả|gửi|liên hệ|dọn|nhận|đóng|trực|ký|thêm|xóa|sửa|mua|bán|ghé|giải|nói|học|mang cho)\\b"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment