Task #2127

Updated by Sebastien Jacquot over 2 years ago

Done.

Location: /org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/preferences/CooccurrencePreferences.java

Names:

<pre>
public static final String PREFERENCES_PREFIX = "cooccurrence_"; //$NON-NLS-1$
public static final String SCORE_FORMAT = PREFERENCES_PREFIX + "score_format"; //$NON-NLS-1$
public static final String MIN_FREQ = PREFERENCES_PREFIX + "min_freq"; //$NON-NLS-1$
public static final String MIN_COUNT = PREFERENCES_PREFIX + "min_count"; //$NON-NLS-1$
public static final String MIN_SCORE = PREFERENCES_PREFIX + "min_score"; //$NON-NLS-1$
public static final String MAX_LEFT = PREFERENCES_PREFIX + "max_left"; //$NON-NLS-1$
public static final String MIN_LEFT = PREFERENCES_PREFIX + "min_left"; //$NON-NLS-1$
public static final String MIN_RIGHT = PREFERENCES_PREFIX + "min_right"; //$NON-NLS-1$
public static final String MAX_RIGHT = PREFERENCES_PREFIX + "max_right"; //$NON-NLS-1$
public static final String PARTIAL_LEXICAL_TABLE = PREFERENCES_PREFIX + "partial_lexical_table"; //$NON-NLS-1$
</pre>

Values:
<pre>

preferences.put(SCORE_FORMAT, "E00");
preferences.putInt(MIN_FREQ, 2);
preferences.putInt(MIN_COUNT, 2);
preferences.putDouble(MIN_SCORE, 2.0);

preferences.putInt(MAX_LEFT, 10);
preferences.putInt(MIN_LEFT, 0);
preferences.putInt(MIN_RIGHT, 0);
preferences.putInt(MAX_RIGHT, 10);
</pre>

h3. Validation tests

* check the preferences are well filled in the user command preferences page

Back