1. Alexandre Patry
  2. mallet

Commits

Gregory Druck  committed 966c659

Make file reading method public so that other classes can use it.

  • Participants
  • Parent commits 068fabe
  • Branches default

Comments (0)

Files changed (1)

File src/cc/mallet/classify/tui/Vectors2FeatureConstraints.java

View file
     return features;
   }
   
-  private static HashMap<Integer,ArrayList<Integer>> readFeaturesAndLabelsFromFile(File file, Alphabet dataAlphabet, Alphabet targetAlphabet) {
+  public static HashMap<Integer,ArrayList<Integer>> readFeaturesAndLabelsFromFile(File file, Alphabet dataAlphabet, Alphabet targetAlphabet) {
     HashMap<Integer,ArrayList<Integer>> featuresAndLabels = new HashMap<Integer,ArrayList<Integer>>();
     
     try {