Now using language dependent senti analizier. no compound score anymore.

This commit is contained in:
rnsrk 2023-01-05 01:43:11 +01:00
parent f0d4eadf28
commit a20f7331bb
8 changed files with 153 additions and 72 deletions

View file

@ -5,7 +5,7 @@ class Toots(Base):
__tablename__ = 'Toots'
__table_args__ = {'extend_existing': True}
index = Column(Integer, primary_key=True)
compound = Column(Float)
model = Column(String(30))
datetime = Column(Date)
language = Column(String(3))
sentiment = Column(String(8))
@ -16,18 +16,17 @@ class Toots(Base):
class Sentiments(Base):
__tablename__ = 'Sentiments'
class SentimentCounts(Base):
__tablename__ = 'SentimentCounts'
__table_args__ = {'extend_existing': True}
index = Column(Integer, primary_key=True)
sentimentCount = Column(Integer)
date = Column(Date, primary_key = True)
date = Column(Date, primary_key=True)
sentiment = Column(String(8))
class Compounds(Base):
__tablename__ = 'Compounds'
class SentimentMeans(Base):
__tablename__ = 'SentimentMeans'
__table_args__ = {'extend_existing': True}
index = Column(Integer, primary_key=True)
date = Column(Date, primary_key = True)
compoundAvg = Column(Float)
date = Column(Date, primary_key=True)
SentimentsMean = Column(Float)