morpheme-match
Advanced tools
Comparing version 2.0.0 to 2.0.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.4](https://github.com/azu/morpheme-match/compare/v2.0.3...v2.0.4) (2019-10-20) | ||
### Bug Fixes | ||
* **morpheme-match:** fix ExpectedToken type ([b06e276](https://github.com/azu/morpheme-match/commit/b06e276)) | ||
# 2.0.0 (2019-06-14) | ||
@@ -8,0 +19,0 @@ |
@@ -19,3 +19,17 @@ export declare type Token = { | ||
}; | ||
export declare type ExpectedToken = Partial<Token> & ExpectedTokenAdditional & { | ||
export declare type ExpectedToken = { | ||
word_id?: number | number[]; | ||
word_type?: "KNOWN" | "UNKNOWN"; | ||
surface_form?: string | string[]; | ||
pos?: string | string[]; | ||
pos_detail_1?: string | string[]; | ||
pos_detail_2?: string | string[]; | ||
pos_detail_3?: string | string[]; | ||
conjugated_type?: string | string[]; | ||
conjugated_form?: string | string[]; | ||
basic_form?: string | string[]; | ||
reading?: string | string[]; | ||
pronunciation?: string | string[]; | ||
word_position?: number | number[]; | ||
} & ExpectedTokenAdditional & { | ||
[index: string]: any; | ||
@@ -22,0 +36,0 @@ }; |
{ | ||
"name": "morpheme-match", | ||
"version": "2.0.0", | ||
"version": "2.0.4", | ||
"description": "match function that match token(形態素解析) with sentence.", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"email": "azuciao@gmail.com", | ||
"gitHead": "3c3aa522a214e319eac7bfd7817dbd23b7a56cb0" | ||
"gitHead": "e04dd2b7ba05005a3c8bd8eae81803e0ca77a95f" | ||
} |
@@ -34,3 +34,34 @@ export type Token = { | ||
export type ExpectedToken = Partial<Token> & ExpectedTokenAdditional & { | ||
// ExpectedToken is based on Token | ||
// But support array of each properties | ||
export type ExpectedToken = { | ||
// 辞書内での単語ID | ||
word_id?: number | number[]; | ||
// 単語タイプ(辞書に登録されている単語ならKNOWN; 未知語ならUNKNOWN) | ||
word_type?: "KNOWN" | "UNKNOWN"; | ||
// 表層形 | ||
surface_form?: string | string[]; | ||
// 品詞 | ||
pos?: string | string[]; | ||
// 品詞細分類1 | ||
pos_detail_1?: string | string[]; | ||
// 品詞細分類2 | ||
pos_detail_2?: string | string[]; | ||
// 品詞細分類3 | ||
pos_detail_3?: string | string[]; | ||
// 活用型 | ||
conjugated_type?: string | string[]; | ||
// 活用形 | ||
conjugated_form?: string | string[]; | ||
// 基本形 | ||
basic_form?: string | string[]; | ||
// 読み | ||
reading?: string | string[]; | ||
// 発音 | ||
pronunciation?: string | string[]; | ||
// 単語の開始位置 | ||
word_position?: number | number[]; | ||
} | ||
& ExpectedTokenAdditional | ||
& { | ||
[index: string]: any; | ||
@@ -37,0 +68,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18499
253
0