[Python] catelog sentences into 5 words that represent them

Discussão em 'Python' iniciado por Stack, Dezembro 19, 2024.

  1. Stack

    Stack Membro Participativo

    I have dataframe with 1000 text rows. df['text']

    I also have 5 words that I want to know for each one of them how much they represnt the text (between 0 to 1)

    every score will be in df["word1"] ,df["word2"] and etc

    I will glad for recomendations how to do that

    edit

    represnt = the semantic distance between the word to the text.

    for example - lets say in row 1 the text is "i want to eat" and I have 2 words : food and house.

    so in df["food "] it would be higher score than in df["house"]

    Continue reading...

Compartilhe esta Página