Python Forum
[Python] Learn words' sentiment based on labels
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Python] Learn words' sentiment based on labels
#1
I have a large database with the following setup for feature and label:

Quote:list_of_list = [[["Many", "words", "forming", "sentences"], "POSITIVE"], ["Some, "are", "bad"], "NEGATIVE"]]

I want to build a model to that learns the sentiment of the words, given the labels. Can someone point me in the right direction?

First time poster, please tell me if I made a mistake in the process of posting here.
Reply
#2
you may want to investigate the NLTK sentiment package here: https://www.nltk.org/api/nltk.sentiment.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python-docx regex : Browse the found words in turn from top to bottom Tmagpy 0 1,508 Jun-27-2022, 08:45 AM
Last Post: Tmagpy
  Generate a string of words for multiple lists of words in txt files in order. AnicraftPlayz 2 2,789 Aug-11-2021, 03:45 PM
Last Post: jamesaarr
  Adding variable to Python code - media sentiment analysis Marietje 3 2,535 May-25-2021, 05:15 PM
Last Post: jefsummers
  I really need help, I am new to python, I am using a book that helps me to learn JaprO 5 2,966 Nov-28-2020, 02:30 PM
Last Post: JaprO
  Want to learn Python compilation and virtual machine IJB 3 2,612 Feb-14-2020, 02:59 PM
Last Post: IJB
  How to change 0 based indexing to 1 based indexing in python..?? Ruthra 2 4,310 Jan-22-2020, 05:13 PM
Last Post: Ruthra
  What is the bestway to learn Python? PythonRIMD 2 2,391 Jan-11-2020, 04:12 PM
Last Post: joe_momma
  Voynich search engine in python using dashes & dot totals to find Italian words Pleiades 3 3,474 Oct-10-2019, 10:04 PM
Last Post: Pleiades
  Python QGIS tool that replaces layout text labels with attributes from an input table geodenn92 1 2,658 Aug-13-2019, 06:05 AM
Last Post: buran
  Beginner want to learn python Keenygp 5 3,263 Apr-10-2019, 09:36 AM
Last Post: KevinBrown

Forum Jump:

User Panel Messages

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