Trait

com.johnsnowlabs.nlp.annotators

DateMatcherUtils

Related Doc: package annotators

Permalink

trait DateMatcherUtils extends Params

Linear Supertypes
Params, Serializable, Serializable, Identifiable, AnyRef, Any
Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. DateMatcherUtils
  2. Params
  3. Serializable
  4. Serializable
  5. Identifiable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(extra: ParamMap): Params

    Permalink
    Definition Classes
    Params
  2. abstract val uid: String

    Permalink
    Definition Classes
    Identifiable

Concrete 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 $[T](param: Param[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. val amDefinition: Regex

    Permalink
    Attributes
    protected
  6. val anchorDateDay: Param[Int]

    Permalink

    Add an anchor day for the relative dates such as a day after tomorrow (Default: -1).

    Add an anchor day for the relative dates such as a day after tomorrow (Default: -1). By default it will use the current day. The first day of the month has value 1.

  7. val anchorDateMonth: Param[Int]

    Permalink

    Add an anchor month for the relative dates such as a day after tomorrow (Default: -1).

    Add an anchor month for the relative dates such as a day after tomorrow (Default: -1). By default it will use the current month. Month values start from 1, so 1 stands for January.

  8. val anchorDateYear: Param[Int]

    Permalink

    Add an anchor year for the relative dates such as a day after tomorrow (Default: -1).

    Add an anchor year for the relative dates such as a day after tomorrow (Default: -1). If it is not set, the by default it will use the current year. Example: 2021

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def calculateAnchorCalendar(): Calendar

    Permalink
    Attributes
    protected
  11. final def clear(param: Param[_]): DateMatcherUtils.this.type

    Permalink
    Definition Classes
    Params
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  14. val dateFormat: Param[String]

    Permalink

    Output format of parsed date (Default: "yyyy/MM/dd")

  15. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  16. val defaultDayWhenMissing: IntParam

    Permalink

    Which day to set when it is missing from parsed input (Default: 1)

  17. val defaultMonthWhenMissing: Int

    Permalink
    Attributes
    protected
  18. val defaultYearWhenMissing: Int

    Permalink
    Attributes
    protected
  19. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def explainParam(param: Param[_]): String

    Permalink
    Definition Classes
    Params
  22. def explainParams(): String

    Permalink
    Definition Classes
    Params
  23. final def extractParamMap(): ParamMap

    Permalink
    Definition Classes
    Params
  24. final def extractParamMap(extra: ParamMap): ParamMap

    Permalink
    Definition Classes
    Params
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def formalDateContentParse(date: RuleMatch): MatchedDateTime

    Permalink
    Attributes
    protected
  27. val formalFactory: RuleFactory

    Permalink

    Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g.

    Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g. 1954

    Attributes
    protected
  28. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  29. def getAnchorDateDay: Int

    Permalink

  30. def getAnchorDateMonth: Int

    Permalink

  31. def getAnchorDateYear: Int

    Permalink

  32. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  34. def getDefaultDayWhenMissing: Int

    Permalink

  35. def getFormat: String

    Permalink

  36. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  37. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  38. def getReadMonthFirst: Boolean

    Permalink

  39. def getSourceLanguage: String

    Permalink

    To get to use or not the multi-language translation.

  40. final def hasDefault[T](param: Param[T]): Boolean

    Permalink
    Definition Classes
    Params
  41. def hasParam(paramName: String): Boolean

    Permalink
    Definition Classes
    Params
  42. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def isDefined(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. final def isSet(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  46. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  47. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  49. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  50. val readMonthFirst: BooleanParam

    Permalink

    Whether to interpret dates as MM/DD/YYYY instead of DD/MM/YYYY (Default: true)

  51. def relativeDateContentParse(date: RuleMatch): MatchedDateTime

    Permalink
    Attributes
    protected
  52. def relativeDateFutureContentParse(date: RuleMatch): MatchedDateTime

    Permalink
    Attributes
    protected
  53. def relativeDatePastContentParse(date: RuleMatch): MatchedDateTime

    Permalink
    Attributes
    protected
  54. def relativeExactContentParse(possibleDate: RuleMatch): MatchedDateTime

    Permalink
  55. val relativeExactFactory: RuleFactory

    Permalink

    Searches for exactly provided days of the week.

    Searches for exactly provided days of the week. Always relative from current time at processing

    Attributes
    protected
  56. val relativeFactory: RuleFactory

    Permalink

    extracts relative dates.

    extracts relative dates. Strategy is to get only first match. Will always assume relative day from current time at processing ToDo: Support relative dates from input date

    Attributes
    protected
  57. val relativeFutureFactory: RuleFactory

    Permalink
    Attributes
    protected
  58. val relativeFuturePattern: String

    Permalink
  59. val relativePastFactory: RuleFactory

    Permalink
    Attributes
    protected
  60. val relativePastPattern: String

    Permalink

    Used for past relative date matches

  61. val relaxedFactory: RuleFactory

    Permalink

    Searches relaxed dates by ordered rules by more exhaustive to less Strategy used is to match first only.

    Searches relaxed dates by ordered rules by more exhaustive to less Strategy used is to match first only. any other matches discarded Auto completes short versions of months. Any two digit year is considered to be XX century

    Attributes
    protected
  62. final def set(paramPair: ParamPair[_]): DateMatcherUtils.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  63. final def set(param: String, value: Any): DateMatcherUtils.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  64. final def set[T](param: Param[T], value: T): DateMatcherUtils.this.type

    Permalink
    Definition Classes
    Params
  65. def setAnchorDateDay(value: Int): DateMatcherUtils.this.type

    Permalink

  66. def setAnchorDateMonth(value: Int): DateMatcherUtils.this.type

    Permalink

  67. def setAnchorDateYear(value: Int): DateMatcherUtils.this.type

    Permalink

  68. final def setDefault(paramPairs: ParamPair[_]*): DateMatcherUtils.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  69. final def setDefault[T](param: Param[T], value: T): DateMatcherUtils.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  70. def setDefaultDayWhenMissing(value: Int): DateMatcherUtils.this.type

    Permalink

  71. def setFormat(value: String): DateMatcherUtils.this.type

    Permalink

  72. def setReadMonthFirst(value: Boolean): DateMatcherUtils.this.type

    Permalink

  73. def setSourceLanguage(value: String): DateMatcherUtils.this.type

    Permalink

    To set or not the source language for explicit translation.

  74. val shortMonths: Seq[String]

    Permalink
    Attributes
    protected
  75. val sourceLanguage: Param[String]

    Permalink

    Source language for explicit translation

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

    Permalink
    Definition Classes
    AnyRef
  77. val timeFactory: RuleFactory

    Permalink

    Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document

    Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document

    returns

    a final possible date if any found

    Attributes
    protected
  78. def toString(): String

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  79. def tomorrowYesterdayContentParse(date: RuleMatch): MatchedDateTime

    Permalink
  80. val tyFactory: RuleFactory

    Permalink

    Searches for relative informal dates such as today or the day after tomorrow

    Searches for relative informal dates such as today or the day after tomorrow

    Attributes
    protected
  81. final def wait(): Unit

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

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

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

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped