Machine Learning & Sentiment Analysis: Text Classification using Python & NLTK

This article deals with using different feature sets to train three different classifiers [Naive Bayes Classifier, Maximum Entropy (MaxEnt) Classifier, and Support Vector Machine (SVM) Classifier]. Bag of Words, Stopword Filtering and Bigram Collocations methods are used for feature set generation. Text Reviews from Yelp Academic Dataset are used to create training dataset. Cross-validation is … Read more

Magento: Delete Orders Programmatically

Here is a quick code to delete orders programmatically in Magento. In Magento, there isn’t the facility to delete orders from admin grid. You need to write custom code to delete orders in Magento. Here is the full code to do so. This code can be saved in a new file in your Magento root … Read more

Magento: Delete Customers Programmatically

Here is a quick code to delete customers programmatically in Magento. You can manually delete customers from customer admin grid. But, sometime you might need to do it automatically through code. Here is the full code to do so. This code can be saved in a new file in your Magento root folder and then … Read more

Google Social Connect: Redirect URI mismatch error

Scenario: I have setup Google Social Connect on a website. When I try to login through Google Social Connect, I get the following 404 error stating: Error: redirect_uri_mismatch The redirect URI in the request: http://MY-WEBSITE-URL/socialconnect/google/connect/ did not match the registered redirect URI. Cause: A possible cause for such kind of error is mismatch of URL … Read more

Magento: Redirecting to Cart page from Checkout page after Place Order

Scenario: I added products to cart. Then did proceed to checkout. I have tried Cash on Delivery and Check / Money Order as Payment method. Everything is fine until the order review section. And then when I click the Place Order button then it gets redirected to Cart page instead of going to Order Success … Read more

LaTeX: Better Print Quality Font with Charter

The default font displayed in LaTeX document is good but if you want a better font which looks better in display and while printing then you can try Charter package. This package uses the charter font. You can simply use the charter package and your LaTeX document font will change automatically. Here is a sample … Read more

LaTeX: Roman numbers in enumerate list and adjust space between list items

In the enumerate list, the numbering by default is in Arabic form (1, 2, 3, 4, 5, etc.). You might need to show these numbering in romanized form (i, ii, iii, iv, v, etc.). To do so, you need to use enumitem package. This package pro­vides user con­trol over the lay­out of the three ba­sic … Read more

Light
Dark