Providing training data for custom sentiment analyzer component

Hello members, I would like to train a custom sentiment analyser component and I need to provide training data to this component. I have gone through the method signature for “train” method from Component class but could not get hint as how do I supply the training data and also the format for training data to be provided with. I would be grateful if someone could shed some light on it. Thank you