убрать категории
var yTrain = tf.tensor2d(
        trainingData.map(t => [t.type == "greeting" ? 1 : 0, t.type == "goodbye" ? 1 : 0, t.type == "insult" ? 1 : 0, t.type == "compliment" ? 1 : 0, t.type == "all" ? 1 : 0])
    )