Menafsirkan hasil prediksi dari model analisis sentimen teks
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Setelah meminta prediksi, Vertex AI akan menampilkan hasil berdasarkan
tujuan model Anda. Prediksi dari model analisis sentimen menampilkan sentimen secara keseluruhan untuk sebuah dokumen. Sentimen direpresentasikan oleh bilangan bulat dari 0 hingga skor sentimen maksimum model, yang bisa sama dengan atau kurang dari 10. Nilai sentimen maksimum untuk model ditetapkan selama pelatihan. Misalnya, jika sebuah model dilatih pada set data dengan skor sentimen maksimum 2, skor sentimen yang diprediksi adalah 0 (negatif), 1 (netral), atau 2 (positif).
Contoh output prediksi batch
Contoh berikut adalah hasil yang diprediksi untuk satu dokumen. Karena skor sentimen maksimum model ini adalah 8, prediksi sentimen untuk sampel ini jelas-jelas positif.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["# Interpret prediction results from text sentiment analysis models\n\n| Starting on September 15, 2024, you can only customize classification, entity extraction, and sentiment analysis objectives by moving to Vertex AI Gemini prompts and tuning. Training or updating models for Vertex AI AutoML for Text classification, entity extraction, and sentiment analysis objectives will no longer be available. You can continue using existing Vertex AI AutoML Text models until June 15, 2025. For a comparison of AutoML text and Gemini, see [Gemini for AutoML text users](/vertex-ai/docs/start/automl-gemini-comparison). For more information about how Gemini offers enhanced user experience through improved prompting capabilities, see [Introduction to tuning](/vertex-ai/generative-ai/docs/models/tune-gemini-overview). To get started with tuning, see [Model tuning for Gemini text models](/vertex-ai/generative-ai/docs/models/tune_gemini/tune-gemini-learn)\n\nAfter requesting a prediction, Vertex AI returns results based on your\nmodel's objective. Predictions from sentiment analysis models return the overall\nsentiment for a document. The sentiment is represented by an integer from 0 to\nthe model's max sentiment score, which can be equal to or less than 10. The\nmaximum sentiment value for a model is set during training. For example, if a\nmodel was trained on a dataset with a maximum sentiment score of 2, predicted\nsentiment scores can be 0 (negative), 1 (neutral), or 2 (positive).\n\nExample batch prediction output\n-------------------------------\n\nThe following sample is the predicted result for a single document. Because the\nmodel's maximum sentiment score is 8, the predicted sentiment for this sample is\nclearly positive.\n\n\n| **Note**: The following JSON Lines example includes line breaks for\n| readability. In your JSON Lines files, line breaks are included only after each\n| each JSON object.\n\n\u003cbr /\u003e\n\n\n```\n{\n \"instance\": {\"content\": \"gs://bucket/text.txt\", \"mimeType\": \"text/plain\"},\n \"prediction\": {\"sentiment\": 8}\n}\n```"]]