-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
In mallet branch, HDPGibbsSampler line 71-73
simply adding the length of data to totalNumberOfWords should be faster than traversing an index and adding one each time, especially for very large documents
might look like this:
totalNumberOfWords += ((FeatureSequence) corpus.get(d).getData()).getLength();
Metadata
Metadata
Assignees
Labels
No labels