I have created a new sentence from existing sentence,by looking in the glossary of…
- User
I have created a new sentence from existing sentence,by looking in the glossary of words,but the glossary words causes some times words are repeating twice and if any small part of word is matching with glossary's word,then also it is changed,need to solve this .I am creating a chatbot.
Top 5 selling models in price of > 20k in Smart Phone is converted to Top 5 selling modelnamenames in price of > 20k in Segment 'SMonth Marcht Phone'
glossary
{ "sales": "aggregated sellout divided by 10000000 from mx_sales table", "Sales": "aggregated sellout from mx_sales in crores",
"quantity":"total sellout_quantity from mx_sales table in thousands (k)",
"volume":"total sellout_quantity from mx_sales table in thousands (k)", "North 1": "Region 'North 1'", "North 2": "Region 'North 2'", "North 3": "Region 'North 3'", "East 1": "Region 'East 1'", "East 2": "Region 'East 2'", "South 1": "Region 'South 1'", "South 2": "Region 'South 2'", "South 3": "Region 'South 3'", "West 1": "Region 'West 1'", "West 2": "Region 'West 2'",
"West 3": "Region 'West 3'",
"West 4": "Region 'West 4'",
"North": "Region ('North 1','North 2','North 3')", "north": "Region ('North 1','North 2','North 3')",
"East": "Region ('East 1','East 2')", "east": "Region ('East 1','East 2')",
"MR":"MT",
"South": "Region ('South 1','South 2','South 3')", "south": "Region ('South 1','South 2','South 3')",
"West": "Region ('West 1','West 2','West 3','West 4')", "west": "Region ('West 1','West 2','West 3','West 4')",
"Accessories" : "Segment 'Accessories'", "Note Pc" : "Segment 'Note Pc'", "Smart Phone" : "Segment 'Smart Phone'", "Tab" : "Segment 'Tab'", "Wearable" : "Segment 'Wearable'", "smart phone":"Segment 'Smart Phone'", "smartphone":"Segment 'Smart Phone'", "Smartphone":"Segment 'Smart Phone'", "SmartPhone":"Segment 'Smart Phone'",
"B2B" :"Channel 'B2B'", "GT" :"Channel 'GT'", "MT" :"Channel 'MT'", "ON" :"Channel 'ON'", "ONLINE" :"Channel 'ONLINE'", "MR" :"Channel 'MR'", "6 to 10k": "priceband '6 K - 10 K'", "6-10k": "priceband '6 K - 10 K'", "6k-10k": "priceband '6 K - 10 K'", "10 to 15k": "priceband '10 K-15 K'", "10-15k": "priceband '10 K-15 K'", "10k-15k": "priceband '10 K-15 K'", "15 to 20k": "priceband '15 K-20 K'", "15-20k": "priceband '15 K-20 K'", "15k-20k": "priceband '15 K-20 K'", "20 to 30k": "priceband '20 K - 30 K'", "20-30k": "priceband '20 K - 30 K'", "20k-30k": "priceband '20 K - 30 K'", "30 to 40k": "priceband '30 K - 40 K'", "30-40k": "priceband '30 K - 40 K''", "30k-40k": "priceband '30 K - 40 K'", ">40k":"priceband 'Above 40K'", "greater than 40k":"priceband 'Above 40K'", "<6k":"priceband 'Below 6K'", "less than 6k":"priceband 'Below 6K'", "SO" : "aggregated sellout","realme":"Competitor Realme", "Realme":"Competitor Realme", "samsung":"Competitor Samsung", "Samsung":"Competitor Samsung", "oneplus":"Competitor Oneplus", "Oneplus":"Competitor Oneplus", "xiaomi" :"Competitor Xiaomi", "Xiaomi" :"Competitor Xiaomi", "apple" :"Competitor Apple", "Apple" :"Competitor Apple", "oppo" :"Competitor Oppo", "Oppo" :"Competitor Oppo", "vivo":"Competitor Vivo", "Vivo":"Competitor Vivo", "jan":"Month Jan ", "feb":"Month feb", "mar":"Month March", "apr":"Month april", "may":"Month May", "jun":"Month June", "jul":"Month July", "aug":"Month August", "sep":"Month September", "oct":"Month October", "nov":"Month November", "dec":"Month December", "2024": "Year 2024", "this year Diwali":"5th Nov 2023 to 9th Nov 2023", "last year diwali": "22nd Oct 2022 to 26th Oct 2022", "models":"modelnames", "Model":"modelname", "model":"modelname", "Modelcode":"modelname", "modelcode":"modelname", "sales contribution":"Percentage aggregated sellout_amount contribution" - Assistant
- User
sales volume for all in GT
aggregated sellout divided by 10000000 from mx_sales table total sellout_quantity from mx_sales table in thousands (k) for all in Channel 'GT'
also at last check the query and remove the duplicate words
- Assistant