The SentimentTrainer function trains a model; that is, takes training documents and outputs a maximum entropy classification model, which it installs on the ML Engine. For information about maximum entropy, see http://en.wikipedia.org/wiki/Maximum_entropy_method.
SentimentTrainer uses files that are preinstalled on the ML Engine. For details, see Preinstalled Files That Functions Use.