Create config.json
Browse files- config.json +50 -0
config.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "custom",
|
| 3 |
+
"model_name": "Product-Review-Grader",
|
| 4 |
+
"description": "A model that analyzes product reviews, generates summaries, extracts pros and cons, and assigns grades based on sentiment.",
|
| 5 |
+
"schema": {
|
| 6 |
+
"preprocessing": {
|
| 7 |
+
"stopwords": [
|
| 8 |
+
"the", "is", "in", "at", "on", "a", "an", "and", "or", "for", "to", "of", "with", "that", "by", "it"
|
| 9 |
+
],
|
| 10 |
+
"text_cleaning": "removes numbers, punctuation, and extra spaces, converts to lowercase"
|
| 11 |
+
},
|
| 12 |
+
"task": {
|
| 13 |
+
"name": "sentiment_analysis_and_grading",
|
| 14 |
+
"description": "Generates sentiment analysis and grades for product reviews using a fine-tuned Gemini model.",
|
| 15 |
+
"input": {
|
| 16 |
+
"review_text": "A string representing a product review."
|
| 17 |
+
},
|
| 18 |
+
"output": {
|
| 19 |
+
"sentiment_label": ["POSITIVE", "NEUTRAL", "NEGATIVE"],
|
| 20 |
+
"grade": "A float number from 1 to 5 representing the grade."
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"summarization": {
|
| 24 |
+
"input": "Text from multiple reviews combined into a single string.",
|
| 25 |
+
"output": "A summarized string of the main points of the reviews."
|
| 26 |
+
},
|
| 27 |
+
"pros_and_cons_extraction": {
|
| 28 |
+
"input": "Text from multiple reviews combined into a single string.",
|
| 29 |
+
"output": {
|
| 30 |
+
"pros": "A string with pros extracted from the text.",
|
| 31 |
+
"cons": "A string with cons extracted from the text."
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"parameters": {
|
| 35 |
+
"min_raters": 35,
|
| 36 |
+
"weighting_formula": "Weighted average combining product rating and global average rating."
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
"dependencies": {
|
| 40 |
+
"libraries": [
|
| 41 |
+
"streamlit",
|
| 42 |
+
"pandas",
|
| 43 |
+
"google-generativeai",
|
| 44 |
+
"os",
|
| 45 |
+
"json",
|
| 46 |
+
"re"
|
| 47 |
+
],
|
| 48 |
+
"python_version": "3.10"
|
| 49 |
+
}
|
| 50 |
+
}
|