47 "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>" 49 " <PredictorRegistry>" 50 " <LOGGER>ERROR</LOGGER>" 52 " Space separated list of predictors to use to generate predictions" 54 " <PREDICTORS>DefaultAbbreviationExpansionPredictor DefaultSmoothedNgramPredictor UserSmoothedNgramPredictor DefaultRecencyPredictor</PREDICTORS>" 55 " </PredictorRegistry>" 57 " <LOGGER>ERROR</LOGGER>" 58 " <!-- SLIDING_WINDOW_SIZE" 59 " Size of buffer used by context tracker to detect context changes" 61 " <SLIDING_WINDOW_SIZE>80</SLIDING_WINDOW_SIZE>" 62 " <!-- LOWERCASE_MODE" 63 " Instruct context tracker to track text as lowercase" 65 " <LOWERCASE_MODE>yes</LOWERCASE_MODE>" 66 " <!-- ONLINE_LEARNING" 67 " Controls presage online machine learning feature." 68 " Presage is context-aware and capable of dynamic online learning." 69 " Setting this to yes/true will enable online learning mode." 70 " Setting this to no/false will disable online learning mode." 71 " When online learning mode is disabled, it is still" 72 " possible to instruct presage to learn through its API." 74 " <ONLINE_LEARNING>yes</ONLINE_LEARNING>" 77 " <LOGGER>ERROR</LOGGER>" 79 " Controls how many suggestions are returned in each prediction." 81 " <SUGGESTIONS>6</SUGGESTIONS>" 82 " <!-- REPEAT_SUGGESTIONS" 83 " Allow the same suggestion to be offered in subsequent" 84 " predictions, even if no context change has been detected." 86 " <REPEAT_SUGGESTIONS>no</REPEAT_SUGGESTIONS>" 87 " <!-- GREEDY_SUGGESTION_THRESHOLD" 88 " Select only tokens whose completion length is greater than" 89 " the specified greedy suggestion threshold." 90 " i.e. If this option is set to 2 and the current prefix is" 91 " \"cu\", then the word \"cub\" will not offered as a" 92 " suggestion, because the completion's length is only one" 93 " character long. Tokens \"curb\" or \"cube\" or \"cubicle\" or" 94 " \"cucumber\" will however be offered, because these" 95 " words' completions are at least 2 characters long." 97 " <GREEDY_SUGGESTION_THRESHOLD>0</GREEDY_SUGGESTION_THRESHOLD>" 99 " <PredictorActivator>" 100 " <LOGGER>ERROR</LOGGER>" 102 " Maximum time allowed for predictors to return their prediction." 104 " <PREDICT_TIME>1000</PREDICT_TIME>" 105 " <!-- MAX_PARTIAL_PREDICTION_SIZE" 106 " Desired size of each prediction prior to combination phase." 108 " <MAX_PARTIAL_PREDICTION_SIZE>60</MAX_PARTIAL_PREDICTION_SIZE>" 109 " <!-- COMBINATION_POLICY" 110 " policy used by predictor to combine predictions returned" 111 " by the active predictors into one prediction." 113 " <COMBINATION_POLICY>Meritocracy</COMBINATION_POLICY>" 114 " </PredictorActivator>" 116 " <LOGGER>ERROR</LOGGER>" 118 " Automatically saves configuration to active profile." 120 " <AUTOPERSIST>false</AUTOPERSIST>" 123 " <DefaultSmoothedNgramPredictor>" 124 " <PREDICTOR>SmoothedNgramPredictor</PREDICTOR>" 125 " <LOGGER>ERROR</LOGGER>" 126 " <DBFILENAME>" pkgdatadir
"/database_en.db</DBFILENAME>" 127 " <!-- $delta_0, $delta_1, ..., $delta_{n-1} -->" 128 " <DELTAS>0.01 0.1 0.89</DELTAS>" 129 " <LEARN>false</LEARN>" 130 " <DatabaseConnector>" 131 " <LOGGER>ERROR</LOGGER>" 132 " </DatabaseConnector>" 133 " </DefaultSmoothedNgramPredictor>" 134 " <UserSmoothedNgramPredictor>" 135 " <PREDICTOR>SmoothedNgramPredictor</PREDICTOR>" 136 " <LOGGER>ERROR</LOGGER>" 137 " <!-- ${HOME} is special. It expands to:" 139 " - %USERPROFILE% on Windows" 141 " <DBFILENAME>${HOME}/.presage/lm.db</DBFILENAME>" 142 " <!-- delta_0, delta_1, ..., delta_{n-1} -->" 143 " <DELTAS>0.01 0.1 0.89</DELTAS>" 144 " <LEARN>true</LEARN>" 145 " <DatabaseConnector>" 146 " <LOGGER>ERROR</LOGGER>" 147 " </DatabaseConnector>" 148 " </UserSmoothedNgramPredictor>" 149 " <DefaultRecencyPredictor>" 150 " <PREDICTOR>RecencyPredictor</PREDICTOR>" 151 " <LOGGER>ERROR</LOGGER>" 152 " <LAMBDA>1</LAMBDA>" 154 " <CUTOFF_THRESHOLD>20</CUTOFF_THRESHOLD>" 155 " </DefaultRecencyPredictor>" 156 " <DefaultDictionaryPredictor>" 157 " <PREDICTOR>DictionaryPredictor</PREDICTOR>" 158 " <DICTIONARY>/usr/share/dict/words</DICTIONARY>" 159 " <!-- fixed probability assigned to prediction -->" 160 " <PROBABILITY>0.000001</PROBABILITY>" 161 " </DefaultDictionaryPredictor>" 162 " <DefaultAbbreviationExpansionPredictor>" 163 " <PREDICTOR>AbbreviationExpansionPredictor</PREDICTOR>" 164 " <LOGGER>ERROR</LOGGER>" 165 " <ABBREVIATIONS>" pkgdatadir
"/abbreviations_en.txt</ABBREVIATIONS>" 166 " </DefaultAbbreviationExpansionPredictor>" 167 " <DefaultDejavuPredictor>" 168 " <PREDICTOR>DejavuPredictor</PREDICTOR>" 169 " <LOGGER>ERROR</LOGGER>" 170 " <MEMORY>" pkgdatadir
"/dejavu_memory_en.txt</MEMORY>" 171 " <TRIGGER>3</TRIGGER>" 172 " </DefaultDejavuPredictor>" 173 " <DefaultARPAPredictor>" 174 " <PREDICTOR>ARPAPredictor</PREDICTOR>" 175 " <LOGGER>ERROR</LOGGER>" 176 " <ARPAFILENAME>" pkgdatadir
"/arpa_en.arpa</ARPAFILENAME>" 177 " <VOCABFILENAME>" pkgdatadir
"/arpa_en.vocab</VOCABFILENAME>" 178 " <TIMEOUT>100</TIMEOUT>" 179 " </DefaultARPAPredictor>" static const char * DEFAULT_PROFILE_FILENAME
DefaultProfile(const std::string &filename)
TiXmlDocument * xmlProfileDoc
void build_xml_document(const std::string &)