public class Configuration
extends java.lang.Object
History:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CS_AA_DIC_FILE
key for the path of Abb/Acr dictionary file in configuration file
|
static java.lang.String |
CS_AUTO_MODE |
static java.lang.String |
CS_CAN_MAX_CANDIDATE_NO
key for the max candidates no
|
static java.lang.String |
CS_CAN_ND_MAX_SPLIT_NO
key for the max recursive split no for ND splitter
|
static java.lang.String |
CS_CAN_NW_1TO1_WORD_MAX_LENGTH
key for the max length of word for non-word 1To1
|
static java.lang.String |
CS_CAN_NW_MAX_MERGE_NO
key for the max space merge no for non-word merge
|
static java.lang.String |
CS_CAN_NW_MAX_SPLIT_NO
key for the max space split no for non-word split
|
static java.lang.String |
CS_CAN_NW_MERGE_WITH_HYPHEN
key for the non-word merge with hyphen
|
static java.lang.String |
CS_CAN_RW_1TO1_CAND_MAX_KEY_SIZE
key for the max key size of rw 1-to-1 candidate
|
static java.lang.String |
CS_CAN_RW_1TO1_CAND_MIN_LENGTH
key for the min wc of rw 1-to-1 candidate
|
static java.lang.String |
CS_CAN_RW_1TO1_CAND_MIN_WC
key for the min wc of rw 1-to-1 candidate
|
static java.lang.String |
CS_CAN_RW_1TO1_WORD_MAX_LENGTH
key for the max length of word for real-word 1To1
|
static java.lang.String |
CS_CAN_RW_MAX_MERGE_NO
key for the max space merge no for real-word merge
|
static java.lang.String |
CS_CAN_RW_MAX_SHORT_SPLIT_WORD_NO
key for the max no of rw short split word
|
static java.lang.String |
CS_CAN_RW_MAX_SPLIT_NO
key for the max space split no for real-word split
|
static java.lang.String |
CS_CAN_RW_MERGE_CAND_MIN_WC
key for the min wc of rw merge candidate
|
static java.lang.String |
CS_CAN_RW_MERGE_WITH_HYPHEN
key for the real-word merge with hyphen
|
static java.lang.String |
CS_CAN_RW_SHORT_SPLIT_WORD_LENGTH
key for the rw short split word length
|
static java.lang.String |
CS_CAN_RW_SPLIT_CAND_MIN_WC
key for the min wc of rw split candidate
|
static java.lang.String |
CS_CHECK_DIC_FILES
key for the path of check dictionary file in configuration file
|
static java.lang.String |
CS_DETECTOR_RW_1TO1_WORD_MIN_LENGTH
key for the min 1-to-1 word length
|
static java.lang.String |
CS_DETECTOR_RW_1TO1_WORD_MIN_WC
key for the min 1-to-1 word word count
|
static java.lang.String |
CS_DETECTOR_RW_SPLIT_WORD_MIN_LENGTH
key for the min split word length
|
static java.lang.String |
CS_DETECTOR_RW_SPLIT_WORD_MIN_WC
key for the min split word word count
|
static java.lang.String |
CS_DIR
key for the path of CSpell directory defined in configuration file
|
static java.lang.String |
CS_FREQUENCY_FILE
key for the path of frequency file in configuration file
|
static java.lang.String |
CS_FUNC_MODE |
static java.lang.String |
CS_INFORMAL_EXP_FILE
key for the path of informal expression file in configuration file
|
static java.lang.String |
CS_MAX_LEGIT_TOKEN_LENGTH
key for the max.
|
static java.lang.String |
CS_MW_DIC_FILE
key for the path of multiwords dictionary file in configuration file
|
static java.lang.String |
CS_NW_1TO1_CONTEXT_RADIUS
key for the nw 1-to-1 context radius, window size = 2*contextRadius+1
|
static java.lang.String |
CS_NW_MERGE_CONTEXT_RADIUS
key for the nw merge context radius
|
static java.lang.String |
CS_NW_SPLIT_CONTEXT_RADIUS
key for the nw split context radius
|
static java.lang.String |
CS_ORTHO_SCORE_ED_DIST_FAC
key for orthographic score weight factor of edit-distance score
|
static java.lang.String |
CS_ORTHO_SCORE_OVERLAP_FAC
key for orthographic score weight factor of overlap score
|
static java.lang.String |
CS_ORTHO_SCORE_PHONETIC_FAC
key for orthographic score weight factor of phonetic score
|
static java.lang.String |
CS_PN_DIC_FILE
key for the path of properNoun dictionary file in configuration file
|
static java.lang.String |
CS_RANK_MODE |
static java.lang.String |
CS_RANKER_NW_S1_MIN_OSCORE
key for the non-word Split and 1-to-1 min oScore
|
static java.lang.String |
CS_RANKER_NW_S1_RANK_RANGE_FAC
key for the non-word Split and 1-to-1 rank range factor
|
static java.lang.String |
CS_RANKER_RW_1TO1_C_FAC
key for the real-word 1-to-1 context score confidence factor
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_CS_DIST
key for the real-word 1to1 cand context score dist
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_CS_FAC
key for the real-word 1to1 cand context score factor
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_FS_DIST
key for the real-word 1to1 cand frequency score dist
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_FS_FAC
key for the real-word 1to1 cand frequency score factor
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_MIN_CS
key for the real-word 1to1 word min context score
|
static java.lang.String |
CS_RANKER_RW_1TO1_CAND_MIN_FS
key for the real-word 1to1 cand min frequency score
|
static java.lang.String |
CS_RANKER_RW_1TO1_WORD_MIN_CS
key for the real-word 1to1 word min context score
|
static java.lang.String |
CS_RANKER_RW_MERGE_C_FAC
key for the real-word merge context score confidence factor
|
static java.lang.String |
CS_RANKER_RW_SPLIT_C_FAC
key for the real-word merge context score confidence factor
|
static java.lang.String |
CS_RW_1TO1_CONTEXT_RADIUS
key for the rw 1-to-1 context radius
|
static java.lang.String |
CS_RW_MERGE_CONTEXT_RADIUS
key for the rw merge context radius
|
static java.lang.String |
CS_RW_SPLIT_CONTEXT_RADIUS
key for the rw split context radius
|
static java.lang.String |
CS_SPLIT_WORD_DIC_FILES
key for the path of split word dictionary file in configuration file
|
static java.lang.String |
CS_SUGGEST_DIC_FILES
key for the path of suggestion dictionary file in configuration file
|
static java.lang.String |
CS_SV_DIC_FILE
key for the path of spVar dictionary file in configuration file
|
static java.lang.String |
CS_UNIT_DIC_FILE
key for the path of unit file in configuration file
|
static java.lang.String |
CS_W2V_IM_FILE
key for the path of word2Vec files in configuration file
|
static java.lang.String |
CS_W2V_OM_FILE |
static java.lang.String |
CS_W2V_SKIP_WORD |
Constructor and Description |
---|
Configuration(java.lang.String fName,
boolean useClassPath)
Create a Configuration object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
GetInformation()
Get system level information from configuration.
|
java.lang.String |
GetProperty(java.lang.String key)
Get a value from configuration file by specifying the key.
|
int |
GetSize()
Get the size of key of config hashtable.
|
void |
OverwriteProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Overwrite the value if it is specified in the properties.
|
public static final java.lang.String CS_AUTO_MODE
public static final java.lang.String CS_DIR
public static final java.lang.String CS_INFORMAL_EXP_FILE
public static final java.lang.String CS_CHECK_DIC_FILES
public static final java.lang.String CS_SUGGEST_DIC_FILES
public static final java.lang.String CS_SPLIT_WORD_DIC_FILES
public static final java.lang.String CS_MW_DIC_FILE
public static final java.lang.String CS_PN_DIC_FILE
public static final java.lang.String CS_AA_DIC_FILE
public static final java.lang.String CS_SV_DIC_FILE
public static final java.lang.String CS_UNIT_DIC_FILE
public static final java.lang.String CS_FREQUENCY_FILE
public static final java.lang.String CS_W2V_IM_FILE
public static final java.lang.String CS_W2V_OM_FILE
public static final java.lang.String CS_FUNC_MODE
public static final java.lang.String CS_RANK_MODE
public static final java.lang.String CS_MAX_LEGIT_TOKEN_LENGTH
public static final java.lang.String CS_DETECTOR_RW_SPLIT_WORD_MIN_LENGTH
public static final java.lang.String CS_DETECTOR_RW_SPLIT_WORD_MIN_WC
public static final java.lang.String CS_DETECTOR_RW_1TO1_WORD_MIN_LENGTH
public static final java.lang.String CS_DETECTOR_RW_1TO1_WORD_MIN_WC
public static final java.lang.String CS_CAN_MAX_CANDIDATE_NO
public static final java.lang.String CS_CAN_ND_MAX_SPLIT_NO
public static final java.lang.String CS_CAN_NW_1TO1_WORD_MAX_LENGTH
public static final java.lang.String CS_CAN_NW_MAX_SPLIT_NO
public static final java.lang.String CS_CAN_NW_MAX_MERGE_NO
public static final java.lang.String CS_CAN_NW_MERGE_WITH_HYPHEN
public static final java.lang.String CS_CAN_RW_1TO1_WORD_MAX_LENGTH
public static final java.lang.String CS_CAN_RW_MAX_SPLIT_NO
public static final java.lang.String CS_CAN_RW_MAX_MERGE_NO
public static final java.lang.String CS_CAN_RW_MERGE_WITH_HYPHEN
public static final java.lang.String CS_CAN_RW_SHORT_SPLIT_WORD_LENGTH
public static final java.lang.String CS_CAN_RW_MAX_SHORT_SPLIT_WORD_NO
public static final java.lang.String CS_CAN_RW_MERGE_CAND_MIN_WC
public static final java.lang.String CS_CAN_RW_SPLIT_CAND_MIN_WC
public static final java.lang.String CS_CAN_RW_1TO1_CAND_MIN_LENGTH
public static final java.lang.String CS_CAN_RW_1TO1_CAND_MIN_WC
public static final java.lang.String CS_CAN_RW_1TO1_CAND_MAX_KEY_SIZE
public static final java.lang.String CS_RANKER_NW_S1_RANK_RANGE_FAC
public static final java.lang.String CS_RANKER_NW_S1_MIN_OSCORE
public static final java.lang.String CS_RANKER_RW_1TO1_C_FAC
public static final java.lang.String CS_RANKER_RW_SPLIT_C_FAC
public static final java.lang.String CS_RANKER_RW_MERGE_C_FAC
public static final java.lang.String CS_RANKER_RW_1TO1_WORD_MIN_CS
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_CS_FAC
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_MIN_CS
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_CS_DIST
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_FS_FAC
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_MIN_FS
public static final java.lang.String CS_RANKER_RW_1TO1_CAND_FS_DIST
public static final java.lang.String CS_ORTHO_SCORE_ED_DIST_FAC
public static final java.lang.String CS_ORTHO_SCORE_PHONETIC_FAC
public static final java.lang.String CS_ORTHO_SCORE_OVERLAP_FAC
public static final java.lang.String CS_W2V_SKIP_WORD
public static final java.lang.String CS_NW_1TO1_CONTEXT_RADIUS
public static final java.lang.String CS_NW_SPLIT_CONTEXT_RADIUS
public static final java.lang.String CS_NW_MERGE_CONTEXT_RADIUS
public static final java.lang.String CS_RW_1TO1_CONTEXT_RADIUS
public static final java.lang.String CS_RW_SPLIT_CONTEXT_RADIUS
public static final java.lang.String CS_RW_MERGE_CONTEXT_RADIUS
public Configuration(java.lang.String fName, boolean useClassPath)
fName
- the path of the configuration file or base name when
using classpath.useClassPath
- a boolean flag of finding configuration file
from classpathpublic int GetSize()
public java.lang.String GetProperty(java.lang.String key)
key
- key (name) of the configuration value to be getpublic void OverwriteProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
properties
- properties to be overwrite in the configurationpublic java.lang.String GetInformation()
Submit a bug or feature
Copyright © 2018 National Library of Medicine