Commit b5bdf05f authored by Tomasz Walkowiak's avatar Tomasz Walkowiak

Fixing bug in JSON2XLSX

parent 8fec8fde
Pipeline #562 passed with stage
in 2 minutes and 15 seconds
......@@ -43,7 +43,6 @@ public class Converter extends Worker {
new TopicModel().process(fileIn, fileOut, options);
} else if (type.equals("ccl2liwc")) {
new Ccl2LIWC().process(fileIn, fileOut, options);
} else if (type.equals("ccl2xlsx")) {
new CCLCzasownik().process(fileIn, fileOut, options);
} else if (type.equals("ccl2verbs")) {
......@@ -60,32 +59,24 @@ public class Converter extends Worker {
new Ccl2LocJSON().process(fileIn, fileOut, options);
} else if (type.equals("txt2list")) {
new Txt2List().process(fileIn, fileOut, options);
/*
/*
} else if (type.equals("ccls2dist")) {
new Ccls2Dist(connection, "lex_").process(fileIn, fileOut, options);
} else if (type.equals("ccls2worddist")) {
new Ccls2WordDist(connection, "lex_").process(fileIn, fileOut, options);
*/
*/
} else if (type.equals("ccl2vec")) {
new Ccl2Doc2Vec(connection, "lex_").process(fileIn, fileOut, options);
} else if (type.equals("ccl2stat")) {
new Ccl2Stats().process(fileIn, fileOut, options);
}
else if (type.equals("fog")) {
} else if (type.equals("fog")) {
new Smog2MSXLSX().process(fileIn, fileOut, options);
}
else if (type.equals("json2xlsx")){
} else if (type.equals("json2xlsx")) {
new JSON2XLSX().process(fileIn, fileOut, options);
}
else {
} else {
new Ccl2Loc().process(fileIn, fileOut, options);
}
}
......
......@@ -33,7 +33,7 @@ public class JSON2XLSX {
{ keys.put(key, new Integer(key_id++));
}
double value = json.getDouble(key);
row.createCell(column + key_id).setCellValue(value);
row.createCell(column + keys.get(key)).setCellValue(value);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment