Python Forum
How to create synonyms of a word and export them to csv in different columns
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create synonyms of a word and export them to csv in different columns
#1
This is the code which generates synonyms for each word in words_unique
synonym = []
for i in words_unique:
   synonym.append(wordnet.synsets(i))
The result I want is something like this

> WORD      SYNONYM1    SYNONYM2    SYNONYM3    SYNONYM4    SYNONYM5    SYNONYM6
> beautiful alluring    appealing   charming    cute        dazzling    delicate
This needs to be exported to csv.
Reply
#2
What have you tried?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Choices from .ods file columns cspower 3 618 Dec-28-2023, 09:59 PM
Last Post: deanhystad
  How to create a table with different sizes of columns in MS word pepe 8 1,587 Dec-08-2023, 07:31 PM
Last Post: Pedroski55
  Create csv file with 4 columns for process mining thomaskissas33 3 762 Nov-06-2023, 09:36 PM
Last Post: deanhystad
  How to keep columns header on excel without change after export data to excel file? ahmedbarbary 0 1,170 May-03-2022, 05:46 PM
Last Post: ahmedbarbary
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,518 Aug-12-2021, 04:25 PM
Last Post: palladium
  Create SQLite columns from a list or tuple? snakes 6 8,736 May-04-2021, 12:06 PM
Last Post: snakes
  Python Matplotlib: Create chart for every 4 columns in Excel file JaneTan 2 2,791 Feb-28-2021, 05:02 AM
Last Post: JaneTan
  Python Speech recognition, word by word AceScottie 6 16,031 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  print a word after specific word search evilcode1 8 4,867 Oct-22-2019, 08:08 AM
Last Post: newbieAuggie2019
  Ho to create a bar chart with two specific columns? Jack_Sparrow 1 2,363 Jun-24-2018, 06:16 PM
Last Post: Grok_It

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020