Implemented factory pattern for sentiment analyzrs