Need to create tags out of text

I’m new to Hugging Face and I need help with a task involving the extraction of tags from text. This is not a classification problem, as I don’t have a pre-defined set of tags or classes. Instead, I want to generate tags based on the text I provide.

For example, let’s say the input is: “I recently visited an amazing restaurant called ‘The Green House’. It is located in the heart of downtown, surrounded by tall buildings and bustling streets. The restaurant offers a wide range of delicious dishes, including vegetarian and vegan options. The ambiance is cozy and the staff is friendly and attentive. I highly recommend trying their signature dish, the ‘Green Garden Pasta’.”

In this case, the desired output might include tags like:

Restaurant,The Green House,Downtown,Vegetarian, Vegan,Green Garden Pasta

I would greatly appreciate any assistance or guidance on the steps to achieve this solution. Thank you!

1 Like

hi, did you get answers (elsewhere) and make progress? Starting to look into this myself now.

yep, I just found this model. I hope this can help you, but you must create the tags dataset.
Zero shot