Object

com.xiaomi.duckling

Types

Related Doc: package duckling

Permalink

object Types

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Types
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Answer(sentence: String, token: ResolvedToken, features: List[Feature] = Nil, score: Double = 1.0) extends Product with Serializable

    Permalink
  2. case class Context(referenceTime: ZonedDateTime, locale: Locale) extends Product with Serializable

    Permalink

    暂未使用

  3. case class Entity(dim: String, body: String, value: ResolvedValue, start: Int, end: Int, latent: Boolean, enode: Option[Node] = None) extends Product with Serializable

    Permalink
  4. type Extraction = PartialFunction[(Document, List[Node]), List[Feature]]

    Permalink
  5. case class ItemLexicon(dict: Dict) extends PatternItem with Product with Serializable

    Permalink
  6. case class ItemPhrase(mf: PhraseMatcherFn, min: Int, max: Int) extends PatternItem with Product with Serializable

    Permalink
  7. case class ItemPredicate(f: Predicate) extends PatternItem with Product with Serializable

    Permalink
  8. case class ItemRegex(regex: Regex) extends PatternItem with Product with Serializable

    Permalink
  9. case class ItemVarchar(lower: Int, upper: Int, excludes: List[Regex] = DefaultExcludes) extends PatternItem with Product with Serializable

    Permalink
  10. trait NumeralValue extends ResolvedValue

    Permalink
  11. type OptionTokensProduction = PartialFunction[(Options, List[Token]), Option[Token]]

    Permalink
  12. case class Options(withLatent: Boolean = true, full: Boolean = false, debug: Boolean = false, targets: Set[Dimension] = Set(), varcharExpand: Boolean = false, entityWithNode: Boolean = false, rankOptions: RankOptions = new RankOptions(), timeOptions: TimeOptions = new TimeOptions(), numeralOptions: NumeralOptions = new NumeralOptions()) extends Product with Serializable

    Permalink

    传递参数的对象

    传递参数的对象

    withLatent

    latent结果是否返回

    full

    为true时,只返回完整匹配整串的结果

  13. type Pattern = List[PatternItem]

    Permalink
  14. trait PatternItem extends AnyRef

    Permalink
  15. type Predicate = PartialFunction[Token, Boolean]

    Permalink
  16. type Production = PartialFunction[(Options, List[Token]), Option[Token]]

    Permalink
  17. case class Range(start: Int, end: Int) extends Product with Serializable

    Permalink

    不使用 scala.Range,避免不能pattern matching的情况

  18. class RankOptions extends AnyRef

    Permalink

    排序的选项

  19. trait Resolvable extends AnyRef

    Permalink
  20. case class ResolvedToken(range: Range, node: Node, value: ResolvedValue, isLatent: Boolean) extends Product with Serializable

    Permalink
  21. case class ResolvedVal(dimension: Dimension, value: ResolvedValue) extends Product with Serializable

    Permalink
  22. trait ResolvedValue extends AnyRef

    Permalink
  23. case class Rule(name: String, pattern: Pattern, prod: Production, features: Extraction = emptyExtraction) extends Product with Serializable

    Permalink
  24. case class Token(dim: Dimension, data: Resolvable) extends Product with Serializable

    Permalink
  25. type TokensProduction = PartialFunction[List[Token], Option[Token]]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DefaultExcludes: List[Regex]

    Permalink
  5. val EQ: Int

    Permalink
  6. val GT: Int

    Permalink
  7. val LT: Int

    Permalink
  8. val ZoneCN: ZoneId

    Permalink
  9. def and(ps: Predicate*): Predicate

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val conf: Config

    Permalink
  13. val emptyExtraction: Extraction

    Permalink
  14. val emptyPredicate: Predicate

    Permalink
  15. val emptyProduction: Production

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def isDimension(dim: Dimension*): Predicate

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def not(p: Predicate): Predicate

    Permalink
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def optTokens(tp: OptionTokensProduction): Production

    Permalink
  28. def or(ps: Predicate*): Predicate

    Permalink
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def tokens(tp: TokensProduction): Production

    Permalink
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped