Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • any
    • ChsNameTokenizer

Index

Properties

Methods

Properties

Protected _TABLE

_TABLE: IDICT<IWord>

name

name: string = "ChsNameTokenizer"

Methods

_cache

  • _cache(): void

matchName

  • matchName(text: string, cur?: number): IWord[]
  • 匹配包含的人名,并返回相关信息

    Parameters

    • text: string

      文本

    • Default value cur: number = 0

      开始位置

    Returns IWord[]

    返回格式 {w: '人名', c: 开始位置}

split

Generated using TypeDoc