pitt.search.semanticvectors
Class Flags
java.lang.Object
pitt.search.semanticvectors.Flags
public class Flags
- extends java.lang.Object
Class for representing and parsing global command line flags.
All command line flags for the SemanticVectors package should be defined here.
This design is a violation of encapsulation, but since these are things that
the user can break, we believe that we'll create a much cleaner package if we
put this power into user's hands explicitly, but at least insist that all command
line flags are declared in one place - in the Flags class. Needless to say, the
Flags class only looks after the basic syntax of (name, value) command line flags.
All semantics (i.e., in this case, behaviour affected by the flags) is up to the
developer to implement.
- Author:
- dwiddows
Constructor Summary |
Flags()
|
Method Summary |
static java.lang.String |
joinStringArray(java.lang.String[] values)
String pretty print a String array. |
static java.lang.String[] |
parseCommandLineFlags(java.lang.String[] args)
Parse command line flags and create public data structures for accessing them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dimension
public static int dimension
dimensionDescription
public static final java.lang.String dimensionDescription
- See Also:
- Constant Field Values
seedlength
public static int seedlength
seedlengthDescription
public static final java.lang.String seedlengthDescription
- See Also:
- Constant Field Values
minfrequency
public static int minfrequency
maxnonalphabetchars
public static int maxnonalphabetchars
numsearchresults
public static int numsearchresults
numclusters
public static int numclusters
trainingcycles
public static int trainingcycles
windowradius
public static int windowradius
searchtype
public static java.lang.String searchtype
searchtypeDescription
public static final java.lang.String searchtypeDescription
- See Also:
- Constant Field Values
searchtypeValues
public static final java.lang.String[] searchtypeValues
termweight
public static java.lang.String termweight
termweightDescription
public static final java.lang.String termweightDescription
- See Also:
- Constant Field Values
termweightValues
public static final java.lang.String[] termweightValues
indexfileformat
public static java.lang.String indexfileformat
indexfileformatDescription
public static final java.lang.String indexfileformatDescription
- See Also:
- Constant Field Values
indexfileformatValues
public static final java.lang.String[] indexfileformatValues
queryvectorfile
public static java.lang.String queryvectorfile
searchvectorfile
public static java.lang.String searchvectorfile
luceneindexpath
public static java.lang.String luceneindexpath
initialtermvectors
public static java.lang.String initialtermvectors
initialtermvectorsDescription
public static java.lang.String initialtermvectorsDescription
initialdocumentvectors
public static java.lang.String initialdocumentvectors
initialdocumentvectorsDescription
public static java.lang.String initialdocumentvectorsDescription
docindexing
public static java.lang.String docindexing
docindexingDescription
public static java.lang.String docindexingDescription
docindexingValues
public static java.lang.String[] docindexingValues
positionalmethod
public static java.lang.String positionalmethod
positionalmethodDescription
public static java.lang.String positionalmethodDescription
positionalmethodValues
public static java.lang.String[] positionalmethodValues
vectorlookupsyntax
public static java.lang.String vectorlookupsyntax
vectorlookupsyntaxDescription
public static final java.lang.String vectorlookupsyntaxDescription
- See Also:
- Constant Field Values
vectorlookupsyntaxValues
public static java.lang.String[] vectorlookupsyntaxValues
matchcase
public static boolean matchcase
vectorstorelocation
public static java.lang.String vectorstorelocation
vectorstorelocationDescription
public static java.lang.String vectorstorelocationDescription
vectorstorelocationValues
public static java.lang.String[] vectorstorelocationValues
batchcompareseparator
public static java.lang.String batchcompareseparator
batchcompareseparatorDescription
public static java.lang.String batchcompareseparatorDescription
suppressnegatedqueries
public static boolean suppressnegatedqueries
suppressnegatedqueriesDescription
public static java.lang.String suppressnegatedqueriesDescription
contentsfields
public static java.lang.String[] contentsfields
docidfield
public static java.lang.String docidfield
Flags
public Flags()
parseCommandLineFlags
public static java.lang.String[] parseCommandLineFlags(java.lang.String[] args)
throws java.lang.IllegalArgumentException
- Parse command line flags and create public data structures for accessing them.
- Parameters:
args
-
- Returns:
- trimmed list of arguments with command line flags consumed
- Throws:
java.lang.IllegalArgumentException
joinStringArray
public static java.lang.String joinStringArray(java.lang.String[] values)
- String pretty print a String array.
- Returns:
- String representation of input array.