standup.joke
Class FLevel
java.lang.Object
standup.joke.FLevel
public class FLevel
- extends Object
Abstractly, an FLevel
defines a subset of all jokes possibly
generated by the STANDUP joke generated based on a threshold of
familiarity scores.
Each FLevel
defines a pair of FClass
values that act as
minimum thresholds for the Lexeme
s in the question and answer of a
joke respectively. If the keywords in the question and answer of a joke
satisfy these thresholds, the joke satisfies that FLevel
.
Aside from defining various methods available to an instance of an
FLevel
, this method also defines 9 predetermined FLevel
s,
i.e. fl1
to fl9
:
- Author:
- Ruli Manurung
- See Also:
Lexeme.getFamiliarityScore()
,
FLevel
answerFClass
private final FClass answerFClass
- The minimum threshold FScore frequency allowable by this constraint for
answer lexemes.
questionFClass
private final FClass questionFClass
- The minimum threshold FScore allowable by this constraint for question
lexemes.
label
private final String label
fl1
public static final FLevel fl1
fl2
public static final FLevel fl2
fl3
public static final FLevel fl3
fl4
public static final FLevel fl4
fl5
public static final FLevel fl5
fl6
public static final FLevel fl6
fl7
public static final FLevel fl7
fl8
public static final FLevel fl8
fl9
public static final FLevel fl9
FLevel
FLevel(String l,
FClass fq,
FClass fa)
getAnswerFClass
public FClass getAnswerFClass()
getQuestionFClass
public FClass getQuestionFClass()
toString
public String toString()
- Overrides:
toString
in class Object
validFClasses
public boolean validFClasses(float fcQ,
float fcA)
getFLevel
public static FLevel getFLevel(String label)
getFLevel
public static FLevel getFLevel(float fcQ,
float fcA)