public class SuffixFrequencyFSM
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Set |
iv_frequencySet |
(package private) java.util.Set |
iv_hyphenatedSet |
private java.util.Set |
iv_machineSet |
(package private) java.util.Set |
iv_middleTermSet |
(package private) java.util.Set |
iv_periodSet |
(package private) java.util.Set |
iv_singleWordSet |
(package private) java.util.Set |
iv_specifiedWordSet |
(package private) java.util.Set |
iv_textPrefixSet |
(package private) java.util.Set |
iv_textSuffixSet |
Constructor and Description |
---|
SuffixFrequencyFSM()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Set |
execute(java.util.List tokens)
Executes the finite state machines.
|
java.util.Set |
execute(java.util.List tokens,
java.util.Set overrideSet)
Executes the finite state machines.
|
private Machine |
getFrequencyMachine()
Gets a finite state machine that detects the following
('once', 'twice', # or text#) a day/week/month/year:
once a day
three times a day
once-a-day
|
private Machine |
getLatin2AbbreviationMachine()
Gets a finite state machine that detects the following:
40mg/d
32.1-47.3mg/wk
|
private Machine |
getLatin3AbbreviationMachine()
Gets a finite state machine that detects the following:
40mg/d
32.1-47.3mg/wk
|
java.util.Set iv_textSuffixSet
java.util.Set iv_textPrefixSet
java.util.Set iv_frequencySet
java.util.Set iv_middleTermSet
java.util.Set iv_periodSet
java.util.Set iv_hyphenatedSet
java.util.Set iv_singleWordSet
java.util.Set iv_specifiedWordSet
private java.util.Set iv_machineSet
private Machine getLatin3AbbreviationMachine()
private Machine getLatin2AbbreviationMachine()
private Machine getFrequencyMachine()
public java.util.Set execute(java.util.List tokens, java.util.Set overrideSet) throws java.lang.Exception
tokens
- java.lang.Exception
public java.util.Set execute(java.util.List tokens) throws java.lang.Exception
tokens
- java.lang.Exception