fix bug

Fix some bugs in machine learning sentiment analysis.