Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

morpheme-match

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morpheme-match - npm Package Compare versions

Comparing version 2.0.0 to 2.0.4

11

CHANGELOG.md

@@ -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 @@

16

lib/morpheme-match.d.ts

@@ -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 @@ };

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc