Task #2127

Task #2425: Check the default preferences of all commands

Cooccurrences, default preferences

Added by Sebastien Jacquot about 2 years ago. Updated 4 months ago.

Status:Closed Start date:04/10/2017
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Development Spent time: -
Target version:TXM 0.8.0a (split/restructuration)

Description

Done.

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

Names:

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$

Values:


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);

Validation tests

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

History

#1 Updated by Sebastien Jacquot about 2 years ago

  • Parent task changed from #1464 to #2133

#2 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#3 Updated by Sebastien Jacquot about 1 year ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot 10 months ago

  • Parent task changed from #2133 to #2425

#5 Updated by Sebastien Jacquot 4 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF