Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nlpworkers
converter
Commits
b5bdf05f
Commit
b5bdf05f
authored
Jun 25, 2020
by
Tomasz Walkowiak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bug in JSON2XLSX
parent
8fec8fde
Pipeline
#562
passed with stage
in 2 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
+6
-15
module/src/main/java/pl/clarin/converter/Converter.java
module/src/main/java/pl/clarin/converter/Converter.java
+5
-14
module/src/main/java/pl/clarin/converter/JSON2XLSX.java
module/src/main/java/pl/clarin/converter/JSON2XLSX.java
+1
-1
No files found.
module/src/main/java/pl/clarin/converter/Converter.java
View file @
b5bdf05f
...
...
@@ -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
);
}
}
...
...
module/src/main/java/pl/clarin/converter/JSON2XLSX.java
View file @
b5bdf05f
...
...
@@ -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
+
key
s
.
get
(
key
)
).
setCellValue
(
value
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment