Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateWithProgress ¶
func EvaluateWithProgress(texts []string, session *tf.Session, onBatchProcessed func(int, int)) ([]float32, error)
EvaluateWithProgress analyzes the sentiment of the specified batch of texts. onBatchProcessed callback is invoked after processing every minibatch.
func GetSequenceLength ¶
func GetSequenceLength() int
GetSequenceLength returns the maximum length of the text, Longer texts are automatically split by sentence.
func OpenSession ¶
OpenSession creates the Tensorflow session which is used by Evaluate()/EvaluateWithProgress().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.