Apparently ArrayList.getValue().size()
is not the right answer.
I've looked around, not an easy question to pose to Google.
I've explained pretty comprehensively what I'm trying to do in the pseudocode comments, maybe someone knows how to iterate over that array list?
public static void perceptron_data_struc_generateur(Set<String> GLOBO_DICT,
Map<File, ArrayList<String> > fileDict,
Map<File, int[] > perceptron_input)
{
//create a new entry in the array list 'perceptron_input'
//with the key as the file name from fileDict
//create a new array which is the length of GLOBO_DICT
//iterate through the indicies of GLOBO_DICT
//for all words in globo dict, if that word appears in fileDict,
//increment the perceptron_input index that corresponds to that
//word in GLOBO_DICT by the number of times that word appears in fileDict
for (Map.Entry entry : fileDict.entrySet())
{
//System.out.println(entry.getKey());
int[] cross_czech = new int[GLOBO_DICT.size()];
for (String s : GLOBO_DICT)
{
for(int i = 0; i < entry.getValue() ).size(); i++)
{
}
}
}
}
Ultimately the goal is to achieve the first answer to this question, in case you're interested.