bore-bone implementation for PLSA. It hasn't been debuged.