Skip to content

Commit 9d8418e

Browse files
committed
fix serialization of BagOfWords
1 parent 44daace commit 9d8418e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/sysds/runtime/transform/encode/ColumnEncoderBagOfWords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public void writeExternal(ObjectOutput out) throws IOException {
384384
if(_tokenDictionary != null)
385385
for(Map.Entry<Object, Integer> e : _tokenDictionary.entrySet()) {
386386
out.writeUTF((String) e.getKey());
387-
out.writeLong(e.getValue());
387+
out.writeInt(e.getValue());
388388
}
389389
}
390390

0 commit comments

Comments
 (0)