/** * Reads feature constraints from a file, whether they are stored * using Strings or indices. * * @param filename File with feature constraints. * @param data InstanceList used for alphabets. * @return Constraints. */ public static HashMap<Integer,double[]> readConstraintsFromFile(String filename, InstanceList data) { if (testConstraintsFileIndexBased(filename)) { return readConstraintsFromFileIndex(filename,data); } return readConstraintsFromFileString(filename,data); }
/** * Reads feature constraints from a file, whether they are stored * using Strings or indices. * * @param filename File with feature constraints. * @param data InstanceList used for alphabets. * @return Constraints. */ public static HashMap<Integer,double[]> readConstraintsFromFile(String filename, InstanceList data) { if (testConstraintsFileIndexBased(filename)) { return readConstraintsFromFileIndex(filename,data); } return readConstraintsFromFileString(filename,data); }
/** * Reads feature constraints from a file, whether they are stored * using Strings or indices. * * @param filename File with feature constraints. * @param data InstanceList used for alphabets. * @return Constraints. */ public static HashMap<Integer,double[]> readConstraintsFromFile(String filename, InstanceList data) { if (testConstraintsFileIndexBased(filename)) { return readConstraintsFromFileIndex(filename,data); } return readConstraintsFromFileString(filename,data); }