The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Two bug report"
Legacy User
Member Posts: 0 Newbie
Hi, Michael.
I found one bug when I browse WVTool project.
1. WVTool.java should set pruneMin and pruneMax as caller just passed in, instead of defaults. Obviously it is caused the overlook after copy-paste.
public void createVectors(WVTInputList input, WVTConfiguration config, int pruneMin, int pruneMax) throws WVToolException {
// Currently somewhat unefficient: Simply reads all documents twice,
// will be enhanced in future versions.
// Generate the word list
WVTWordList wordList = createWordList(input, config);
// Prune the word list
wordList.pruneByFrequency(DEFAULT_PRUNE_MIN, DEFAULT_PRUNE_MAX);
// Create the word vectors
createVectors(input, config, wordList);
}
-Benjamin
I found one bug when I browse WVTool project.
1. WVTool.java should set pruneMin and pruneMax as caller just passed in, instead of defaults. Obviously it is caused the overlook after copy-paste.
public void createVectors(WVTInputList input, WVTConfiguration config, int pruneMin, int pruneMax) throws WVToolException {
// Currently somewhat unefficient: Simply reads all documents twice,
// will be enhanced in future versions.
// Generate the word list
WVTWordList wordList = createWordList(input, config);
// Prune the word list
wordList.pruneByFrequency(DEFAULT_PRUNE_MIN, DEFAULT_PRUNE_MAX);
// Create the word vectors
createVectors(input, config, wordList);
}
-Benjamin
Tagged:
0
Answers
thanks for sending this in. We will fix this.
Cheers,
Ingo