Options
All
  • Public
  • Public/Protected
  • All
Menu

把一些错认为名词的词标注为形容词,或者对名词作定语的情况

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Optional _POSTAG

_POSTAG: POSTAG

Protected Optional _TABLE

_TABLE: any

Optional inited

inited: boolean

name

name: string = "AdjectiveOptimizer"

Optional priority

priority: number

segment

segment: Segment

type

type: "optimizer" = "optimizer"

Static type

type: "optimizer" = "optimizer"

Methods

Protected _cache

  • _cache(...argv: any[]): void

Protected createToken

  • createToken<T, U>(data: T, skipCheck?: boolean, attr?: U & IWordDebugInfo): T

Protected debugToken

  • debugToken<T, U>(data: T, attr?: U & IWordDebugInfo, returnToken?: true, ...argv: any[]): T

doOptimize

init

  • init(segment: Segment, ...argv: any[]): this

isNominal

  • isNominal(pos: number | number[]): boolean

Protected sliceToken

  • sliceToken<T>(words: T[], pos: number, len: number, data: T, skipCheck?: boolean): T[]

Static Protected _init

Static init

  • init<T>(segment: Segment, ...argv: any[]): T

Generated using TypeDoc