public class SetRule extends Object
Constructor and Description |
---|
SetRule() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static String |
normalizeFreq(String freqStr) |
static TimexChunk |
normalizeSpecialAdverb(String phrase)
This function normalizes special recurrent adverbs like weekly
|
static String |
normalizeValue(String numStr,
String unitStr)
Convert a frequency to timex3 format
|
static TimexChunk |
SetRule(TemporalPhrase temporalPhrase)
This function converts a recurrent time: every day to timex3 format
|
public static String normalizeValue(String numStr, String unitStr)
numStr
- how often an event happens (3)unitStr
- the unit of the above frequency (days a week)public static TimexChunk normalizeSpecialAdverb(String phrase)
phrase
- public static TimexChunk SetRule(TemporalPhrase temporalPhrase)
temporalPhrase
- public static void main(String[] args)
Copyright © 2017. All rights reserved.