2
respostas

06 Desafio: analisando sentimentos em várias resenhas

Uma empresa que fabrica air-fryers está interessada em entender as opiniões das pessoas consumidoras sobre o desempenho do produto e as suas funcionalidades. A empresa deseja o seguinte para cada resenha:

Um resumo em português com no máximo 30 palavras; Uma lista com os pontos fortes do aparelho; Uma lista com os pontos fracos do aparelho; O sentimento final da pessoa em relação ao produto, ou seja, se o sentimento é positivo, neutro ou negativo. Sua tarefa será analisar as seguintes resenhas de pessoas que compraram o produto em uma loja online americana.

Resenha 1: I use the air fryer a lot. It works very well. I made hamburgers in it last night, the were wonderful! The rack you put the food on is a little hard to clean. It has lots of crevices that food gets in. The basket itself is very easy to clean. I also do not trust the rack not to fall out when dumping out food, like French fries.

Resenha 2: Air fryer works fine until the handle breaks off. There's only 3 screws that attach the handle to a plastic piece on the basket. The plastic piece breaks and the screws fall out so there's no way to attach the handle to the basket rendering the air fryer useless. If there were 4 screws or if the screws attached to metal the handle attachment would have been much more secure and less prone to breaking.

Resenha 3: Even though I returned it for the bigger one of the same company I liked the fryer. Ferry ez to use But hard to judge. Seafood button isn't fish and it was a guessing game how to cook the product. I way over cooked it and the chicken legs came out crispy, but the other side was raw. But, this is my first time using an air fryer so maybe it's me. Very sleek on the counter buttons light up real nice. I made tater tots and let me tell you they came out perfect and stayed hot. I like it so much that I returned this one and got the same company Bigger one. But I had to buy it from the place itself not from Amazon and I don't lie that at all. Hope this review helps.

Além disso, será necessário gerar um resultado no formato de saída JSON, para que os dados sejam utilizados para análises posteriores. Neste arquivo JSON, você precisa especificar que quer 5 chaves:

ID da resenha Resumo Lista de pontos fortes Lista de pontos fracos Sentimento Com base nas respostas a essas perguntas, a empresa poderá identificar oportunidades de melhoria em seu produto e aprimorar sua estratégia de marketing.

Vamos lá?

2 respostas
[
  {
    "ID da resenha": 1,
    "Resumo": "Air fryer works well, making wonderful hamburgers.  Cleaning the rack is difficult due to crevices. Basket is easy to clean. Concerns about the rack falling when emptying food.",
    "Lista de pontos fortes": [
      "Works very well",
      "Makes wonderful hamburgers",
      "Basket is very easy to clean"
    ],
    "Lista de pontos fracos": [
      "Rack is hard to clean",
      "Concerns about the rack falling out"
    ],
    "Sentimento": "Positivo"
  },
  {
    "ID da resenha": 2,
    "Resumo": "Air fryer handle broke off due to weak plastic attachment and only 3 screws.  Design flaw renders the air fryer useless.",
    "Lista de pontos fortes": [],
    "Lista de pontos fracos": [
      "Handle breaks easily",
      "Weak plastic attachment",
      "Insufficient screws"
    ],
    "Sentimento": "Negativo"
  },
  {
    "ID da resenha": 3,
    "Resumo": "Liked the air fryer, sleek design, easy to use. Seafood button is confusing. Overcooked some food initially. Tater tots came out perfect. Upgraded to a larger model from the same company.",
    "Lista de pontos fortes": [
      "Sleek design",
      "Easy to use",
      "Tater tots came out perfect",
      "Food stayed hot"
    ],
    "Lista de pontos fracos": [
      "Seafood button is confusing",
      "Overcooked food initially"
    ],
    "Sentimento": "Positivo"
  }
]

Olá, Denis, como vai?

Seu JSON está muito bem estruturado e a categorização dos sentimentos faz sentido dentro das avaliações. Os resumos estão concisos e capturam bem os principais pontos de cada resenha. Além disso, a separação dos pontos fortes e fracos está bem organizada, facilitando a análise da empresa.

Continue compartilhando suas soluções, isso certamente ajuda outros colegas.

Siga firme nos seus estudos e conte com o fórum sempre que precisar!

Abraços :)