Packages

t

com.johnsnowlabs.nlp.annotators

DateMatcherUtils

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
    Definition Classes
    Params
  2. abstract val uid: String
    Definition Classes
    Identifiable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val EMPTY_INIT_ARRAY: Array[String]
    Attributes
    protected
  6. val SPACE_CHAR: String
    Attributes
    protected
  7. val aggressiveMatching: BooleanParam

    Whether to aggressively attempt to find date matches, even in ambiguous or less common formats (Default: false)

  8. val amDefinition: Regex
    Attributes
    protected
  9. val anchorDateDay: Param[Int]

    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.

  10. val anchorDateMonth: Param[Int]

    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.

  11. val anchorDateYear: Param[Int]

    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

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def calculateAnchorCalendar(): Calendar
    Attributes
    protected
  14. final def clear(param: Param[_]): DateMatcherUtils.this.type
    Definition Classes
    Params
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  16. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  17. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  18. val defaultDayWhenMissing: IntParam

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

  19. val defaultMonthWhenMissing: Int
    Attributes
    protected
  20. val defaultYearWhenMissing: Int
    Attributes
    protected
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  24. def explainParams(): String
    Definition Classes
    Params
  25. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  26. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def formalDateContentParse(date: RuleMatch): MatchedDateTime
    Attributes
    protected
  29. val formalFactory: RuleFactory

    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
  30. val formalFactoryInputFormats: RuleFactory
    Attributes
    protected
  31. val formalInputFormats: Map[String, Regex]
    Attributes
    protected
  32. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  33. def getAggressiveMatching: Boolean

    To get aggressive matching Strategy

  34. def getAnchorDateDay: Int

  35. def getAnchorDateMonth: Int

  36. def getAnchorDateYear: Int

  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  39. def getDefaultDayWhenMissing: Int

  40. def getInputFormats: Array[String]

  41. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  42. def getOutputFormat: String

  43. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  44. def getReadMonthFirst: Boolean

  45. def getRelaxedFactoryStrategy: String

    To get matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy

  46. def getSourceLanguage: String

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

  47. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  48. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  49. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  50. val inputFormats: StringArrayParam

    Date Matcher regex patterns.

  51. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  54. val months: Seq[String]
    Attributes
    protected
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. val outputFormat: Param[String]

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

  59. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  60. val readMonthFirst: BooleanParam

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

  61. def relativeDateContentParse(date: RuleMatch): MatchedDateTime
    Attributes
    protected
  62. def relativeDateFutureContentParse(date: RuleMatch): MatchedDateTime
    Attributes
    protected
  63. def relativeDatePastContentParse(date: RuleMatch): MatchedDateTime
    Attributes
    protected
  64. def relativeExactContentParse(possibleDate: RuleMatch): MatchedDateTime
  65. val relativeExactFactory: RuleFactory

    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
  66. val relativeFactory: RuleFactory

    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
  67. val relativeFutureFactory: RuleFactory
    Attributes
    protected
  68. val relativeFuturePattern: String
  69. val relativePastFactory: RuleFactory
    Attributes
    protected
  70. val relativePastPattern: String

    Used for past relative date matches

  71. lazy val relaxedFactory: RuleFactory

    Searches relaxed dates by ordered rules by more exhaustive to less Strategy.

    Searches relaxed dates by ordered rules by more exhaustive to less Strategy. Auto completes short versions of months. Any two digit year is considered to be XX century

    Attributes
    protected
  72. val relaxedFactoryStrategy: Param[String]

    Matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy

  73. final def set(paramPair: ParamPair[_]): DateMatcherUtils.this.type
    Attributes
    protected
    Definition Classes
    Params
  74. final def set(param: String, value: Any): DateMatcherUtils.this.type
    Attributes
    protected
    Definition Classes
    Params
  75. final def set[T](param: Param[T], value: T): DateMatcherUtils.this.type
    Definition Classes
    Params
  76. def setAggressiveMatching(value: Boolean): DateMatcherUtils.this.type

    To set aggressive matching Strategy

  77. def setAnchorDateDay(value: Int): DateMatcherUtils.this.type

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

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

  80. final def setDefault(paramPairs: ParamPair[_]*): DateMatcherUtils.this.type
    Attributes
    protected
    Definition Classes
    Params
  81. final def setDefault[T](param: Param[T], value: T): DateMatcherUtils.this.type
    Attributes
    protected[org.apache.spark.ml]
    Definition Classes
    Params
  82. def setDefaultDayWhenMissing(value: Int): DateMatcherUtils.this.type

  83. def setInputFormats(value: Array[String]): DateMatcherUtils.this.type

  84. def setOutputFormat(value: String): DateMatcherUtils.this.type

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

  86. def setRelaxedFactoryStrategy(matchStrategy: Format = MatchStrategy.MATCH_FIRST): DateMatcherUtils.this.type

    To set matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy

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

    To set or not the source language for explicit translation.

  88. val shortMonths: Seq[String]
    Attributes
    protected
  89. val sourceLanguage: Param[String]

    Source language for explicit translation

  90. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  91. val timeFactory: RuleFactory

    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
  92. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  93. def tomorrowYesterdayContentParse(date: RuleMatch): MatchedDateTime
  94. val tyFactory: RuleFactory

    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
  95. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  96. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped