Package

org.clulab.timenorm

scate

Permalink

package scate

Visibility
  1. Public
  2. All

Type Members

  1. case class AfterP(interval: Interval, period: Period, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Shifts the input interval later by a given period length.

    Shifts the input interval later by a given period length. Formally: After([t1,t2): Interval, Δ: Period) = [t1 + Δ - x, t2 + Δ + x) where x = u1(Δ)/2 if t2 - t1 is smaller than u1(Δ) or 0 otherwise where u1(Δ) is a period with the same units as Δ but only 1 unit

    In other words, the width of the resulting interval is the maximum of the widths of the input interval and a 1-unit version of the period

    interval

    interval to shift from

    period

    period to shift the interval by

  2. case class AfterRI(interval: Interval, repeatingInterval: RepeatingInterval, number: Number = IntNumber(1), from: Point = Interval.End, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IRIN with Product with Serializable

    Permalink

    Finds the Nth earliest repeated interval after the input interval.

    Finds the Nth earliest repeated interval after the input interval. Formally: After([t1,t2): Interval, R: RepeatingInterval, n: Number): Interval = Nth earliest interval {[t.start, t.end) ∈ R: t2 ≤ t.start}

    interval

    interval to start from

    repeatingInterval

    repeating intervals to search over

  3. class AnaforaReader extends AnyRef

    Permalink
  4. case class BeforeP(interval: Interval, period: Period, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Shifts the input interval earlier by a given period length.

    Shifts the input interval earlier by a given period length. Formally: Before([t1,t2): Interval, Δ: Period) = [t1 - Δ - x, t2 - Δ + x) where x = u1(Δ)/2 if t2 - t1 is smaller than u1(Δ) or 0 otherwise where u1(Δ) is a period with the same units as Δ but only 1 unit

    In other words, the width of the resulting interval is the maximum of the widths of the input interval and a 1-unit version of the period

    interval

    interval to shift from

    period

    period to shift the interval by

  5. case class BeforeRI(interval: Interval, repeatingInterval: RepeatingInterval, number: Number = IntNumber(1), from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IRIN with Product with Serializable

    Permalink

    Finds the Nth latest repeated interval before the input interval.

    Finds the Nth latest repeated interval before the input interval. Formally: Before([t1,t2): Interval, R: RepeatingInterval, n: Number): Interval = Nth latest interval {[t.start, t.end) ∈ R: t.end ≤ t1}

    interval

    interval to begin from

    repeatingInterval

    RI that supplies the appropriate time intervals

    number

    the number of intervals to skip

  6. case class Between(startInterval: Interval, endInterval: Interval, startIncluded: Boolean = false, endIncluded: Boolean = false, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink

    Finds the interval between two input intervals.

    Finds the interval between two input intervals. Formally: Between([t1,t2): startInterval,[t3,t4): endInterval): Interval = [t2,t3)

    startInterval

    first interval

    endInterval

    second interval

    startIncluded

    first interval is included

    endIncluded

    second interval is included

  7. case class Event(description: String, charSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink
  8. case class FractionalNumber(number: Int, numerator: Int, denominator: Int, charSpan: Option[(Int, Int)] = None) extends Number with Product with Serializable

    Permalink
  9. trait IP extends TimeExpression

    Permalink

    Base trait for time expressions that take Interval and Period arguments

  10. trait IRIN extends TimeExpression

    Permalink

    Base trait for time expressions that take Interval, RepeatingInterval, and Number arguments

  11. trait IRINP extends IRIN

    Permalink
  12. case class IntNumber(n: Int, charSpan: Option[(Int, Int)] = None) extends Number with Product with Serializable

    Permalink
  13. case class IntersectionI(intervals: Seq[Interval], triggerCharSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink
  14. case class IntersectionRI(repeatingIntervals: Set[RepeatingInterval], triggerCharSpan: Option[(Int, Int)] = None) extends RepeatingInterval with Product with Serializable

    Permalink
  15. trait Interval extends TimeExpression

    Permalink

    An interval on the timeline, defined by a starting point using the start val (inclusive) and an ending point expressed by the end val (exclusive).

    An interval on the timeline, defined by a starting point using the start val (inclusive) and an ending point expressed by the end val (exclusive). For example, the expression \textit{1990} corresponds to the interval [1990-01-01, 1991-01-01).

  16. trait Intervals extends TimeExpression with Seq[Interval]

    Permalink
  17. trait Last extends IRIN

    Permalink
  18. case class LastP(interval: Interval, period: Period, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Creates an interval of the given length that ends just before the given interval.

    Creates an interval of the given length that ends just before the given interval. Formally: Last([t1,t2): Interval, Δ: Period = [t1 - Δ, t1)

    interval

    interval to shift from

    period

    period to shift the interval by

  19. case class LastRI(interval: Interval, repeatingInterval: RepeatingInterval, from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with Last with Product with Serializable

    Permalink

    Finds the latest repeated interval that appears before the given interval.

    Finds the latest repeated interval that appears before the given interval. Formally: Last([t1,t2): Interval, R: RepeatingInterval) = latest of {[t.start,t.end) ∈ R: t.end ≤ t1}

    interval

    interval to begin from

    repeatingInterval

    RI that supplies the appropriate time intervals

  20. case class LastRIs(interval: Interval, repeatingInterval: RepeatingInterval, number: Number = IntNumber(1), from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Intervals with Last with Product with Serializable

    Permalink

    Finds the n latest repeated intervals that appear before the given interval.

    Finds the n latest repeated intervals that appear before the given interval. Formally: Last([t1,t2): Interval, R: RepeatingInterval, n: Number) = n latest of {[t.start,t.end) ∈ R: t.end ≤ t1}

    interval

    interval to begin from

    repeatingInterval

    RI that supplies the appropriate time intervals

    number

    the number of intervals ot take

  21. trait Modifier extends TimeExpression

    Permalink
  22. trait Next extends IRIN

    Permalink
  23. case class NextP(interval: Interval, period: Period, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Creates an interval of a given length that starts just after the input interval.

    Creates an interval of a given length that starts just after the input interval. Formally: Next([t1,t2): Interval, Δ: Period = [t2, t2 + Δ)

    interval

    interval to shift from

    period

    period to shift the interval by

  24. case class NextRI(interval: Interval, repeatingInterval: RepeatingInterval, from: Point = Interval.End, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with Next with Product with Serializable

    Permalink

    Finds the next earliest repeated intervals that appear after the given interval.

    Finds the next earliest repeated intervals that appear after the given interval. Formally: Next([t1,t2): Interval, R: RepeatingInterval, n: Number) = n earliest of {[t.start,t.end) ∈ R: t2 ≤ t.start}

    interval

    interval to begin from

    repeatingInterval

    RI that supplies the appropriate time intervals

  25. case class NextRIs(interval: Interval, repeatingInterval: RepeatingInterval, number: Number = IntNumber(1), from: Point = Interval.End, triggerCharSpan: Option[(Int, Int)] = None) extends Intervals with Next with Product with Serializable

    Permalink

    Finds the n earliest repeated intervals that appear after the given interval.

    Finds the n earliest repeated intervals that appear after the given interval. Formally: Next([t1,t2): Interval, R: RepeatingInterval, n: Number) = n earliest of {[t.start,t.end) ∈ R: t2 ≤ t.start}

    interval

    interval to begin from

    repeatingInterval

    RI that supplies the appropriate time intervals

    number

    the number of repeated intervals to take

  26. case class NthP(interval: Interval, index: Int, period: Period, from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Creates an interval that is the nth repetition of the period in of the interval.

    Creates an interval that is the nth repetition of the period in of the interval. Formally: Nth([t1,t2): Interval, Δ: Period, n: N, Start): Interval = [t1+Δ*(n-1), t1+Δ*n) Nth([t1,t2): Interval, Δ: Period, n: N, End): Interval = [t2-Δ*(n-1), t2-Δ*n)

    interval

    the interval to begin from

    index

    the number of repetitions of the period to add

    period

    the period to scale by

    from

    which end of the interval to start at

  27. case class NthRI(interval: Interval, index: Int, repeatingInterval: RepeatingInterval, from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IRINP with Product with Serializable

    Permalink

    Selects the Nth subinterval of a RepeatingInterval in another Interval.

    Selects the Nth subinterval of a RepeatingInterval in another Interval. Formally: Nth([t1,t2): Interval, n: Number, R: RepeatingInterval, Start): Interval

    Nth, counting forward from t1, of {[t.start, t.end) ∈ R : t1 ≤ t.start ∧ t.end ≤ t2} Nth([t1,t2): Interval, n: Number, R: RepeatingInterval, End): Interval

    Nth, counting backward from t2, of {[t.start, t.end) ∈ R : t1 ≤ t.start ∧ t.end ≤ t2}

    interval

    interval to start from

    index

    index of the group to be selected (counting from 1)

    repeatingInterval

    repeating intervals to select from

    from

    which end of the interval to start at

  28. case class NthRIs(interval: Interval, index: Int, repeatingInterval: RepeatingInterval, number: Number = IntNumber(1), from: Point = Interval.Start, triggerCharSpan: Option[(Int, Int)] = None) extends Intervals with IRINP with Product with Serializable

    Permalink

    Selects the Nth group of subintervals from a RepeatingInterval in another Interval.

    Selects the Nth group of subintervals from a RepeatingInterval in another Interval.

    interval

    interval to start from

    index

    index of the group to be selected (counting from 1)

    repeatingInterval

    repeating intervals to select from

    number

    number of repeated intervals in each group

    from

    which end of the interval to start at

  29. trait Number extends TimeExpression

    Permalink
  30. trait Period extends TimeExpression with TemporalAmount

    Permalink

    An amount of time, expressed as counts of standard time units U = {years, months, etc.}.

    An amount of time, expressed as counts of standard time units U = {years, months, etc.}. For example, a week (i.e., weeks -> 1) or three months (i.e., months -> 3). Note that periods are independent of the timeline. For example, given only the period expression 10 weeks, it is impossible to assign time points of the form NNNN-NN-NN NN:NN:NN to its start and end.

  31. case class RepeatingField(field: TemporalField, value: Long, modifier: Option[Modifier] = None, triggerCharSpan: Option[(Int, Int)] = None) extends RepeatingInterval with Product with Serializable

    Permalink
  32. trait RepeatingInterval extends TimeExpression

    Permalink
  33. case class RepeatingUnit(unit: TemporalUnit, modifier: Option[Modifier] = None, triggerCharSpan: Option[(Int, Int)] = None) extends RepeatingInterval with Product with Serializable

    Permalink
  34. case class SimpleInterval(start: LocalDateTime, end: LocalDateTime) extends Interval with Product with Serializable

    Permalink
  35. case class SimpleIntervals(intervals: Seq[Interval]) extends Intervals with Product with Serializable

    Permalink
  36. case class SimplePeriod(unit: TemporalUnit, n: Number, modifier: Option[Modifier] = None, targetCharSpan: Option[(Int, Int)] = None) extends Period with Product with Serializable

    Permalink
  37. case class SumP(periods: Set[Period], modifier: Option[Modifier] = None, targetCharSpan: Option[(Int, Int)] = None) extends Period with Product with Serializable

    Permalink
  38. class TemporalNeuralParser extends AutoCloseable

    Permalink
  39. trait This extends TimeExpression

    Permalink
  40. case class ThisP(interval: Interval, period: Period, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with IP with Product with Serializable

    Permalink

    Creates an interval of a given Period length centered on a given interval.

    Creates an interval of a given Period length centered on a given interval. Formally: This([t1,t2): Interval, Δ: Period) = [ (t1 + t2)/2 - Δ/2, (t1 + t2)/2 + Δ/2 )

    interval

    interval to center the period upon

    period

    period of interest

  41. case class ThisRI(interval: Interval, repeatingInterval: RepeatingInterval, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with This with Product with Serializable

    Permalink

    Finds the repeated interval contained within the given interval.

    Finds the repeated interval contained within the given interval. The given interval is first expanded and aligned to a unit the size of the repeating interval's range. This results in the proper semantics for something like "this Wednesday", which really means "the Wednesday of this week".

    interval

    the interval identifying the boundaries of the container

    repeatingInterval

    the repeating intervals that should be found within the container

  42. case class ThisRIs(interval: Interval, repeatingInterval: RepeatingInterval, triggerCharSpan: Option[(Int, Int)] = None) extends Intervals with This with Product with Serializable

    Permalink

    Finds the repeated interval contained within the given interval.

    Finds the repeated interval contained within the given interval. The given interval is first expanded and aligned to a unit the size of the repeating interval's range. This results in the proper semantics for something like "this Wednesday", which really means "the Wednesday of this week".

    interval

    the interval identifying the boundaries of the container

    repeatingInterval

    the repeating intervals that should be found within the container

  43. trait TimeExpression extends AnyRef

    Permalink
  44. case class TimeZone(name: String, charSpan: Option[(Int, Int)] = None) extends TimeExpression with Product with Serializable

    Permalink
  45. case class UnionRI(repeatingIntervals: Set[RepeatingInterval], triggerCharSpan: Option[(Int, Int)] = None) extends RepeatingInterval with Product with Serializable

    Permalink
  46. case class UnknownInterval(charSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink
  47. case class UnknownPeriod(charSpan: Option[(Int, Int)] = None) extends Period with Product with Serializable

    Permalink
  48. case class UnknownRepeatingInterval(charSpan: Option[(Int, Int)] = None) extends RepeatingInterval with Product with Serializable

    Permalink
  49. case class VagueNumber(description: String, charSpan: Option[(Int, Int)] = None) extends Number with Product with Serializable

    Permalink
  50. class WordsToNumber extends Function[Array[String], Option[Long]]

    Permalink
  51. case class Year(digits: Int, nMissingDigits: Int = 0, charSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink

    A Year represents the interval from the first second of the year (inclusive) to the first second of the next year (exclusive).

    A Year represents the interval from the first second of the year (inclusive) to the first second of the next year (exclusive). The optional second parameter allows this to also represent decades (nMissingDigits=1), centuries (nMissingDigits=2), etc.

  52. case class YearSuffix(interval: Interval, lastDigits: Int, nSuffixDigits: Int, nMissingDigits: Int = 0, triggerCharSpan: Option[(Int, Int)] = None) extends Interval with Product with Serializable

    Permalink

    YearSuffix creates an interval by taking the year from another interval and replacing the last digits.

    YearSuffix creates an interval by taking the year from another interval and replacing the last digits. As with Year, the optional second parameter allows YearSuffix to represent decades (nMissingDigits=1), centuries (nMissingDigits=2), etc.

Value Members

  1. object AnaforaReader

    Permalink
  2. object Interval

    Permalink
  3. object Modifier

    Permalink
  4. object Number

    Permalink
  5. object SimpleInterval extends Serializable

    Permalink
  6. object TemporalNeuralParser

    Permalink
  7. object TimeNormScorer

    Permalink
  8. object WordsToNumber

    Permalink

Ungrouped