0 check age accounts take advice spambots lots b... -1 1 let memes dreams . robinhood fuck going raise ... 1 2 take rich give poor . nok fucking moon . gme p... 1 3 hold guh . time blow zom zomedi

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Natural Language Processing

Hello, I would like to ask for some help. Been stuck for a couple of days. Can you provide a TensorFlow implementation of the following?


Given a dataset (please see below), I would like to convert it into Doc2Vec and train it into a CNN model.

Sample Data:

title_body up_neu_dn_mov
0 check age accounts take advice spambots lots b... -1
1 let memes dreams . robinhood fuck going raise ... 1
2 take rich give poor . nok fucking moon . gme p... 1
3 hold guh . time blow zom zomedica like gamesto... 1
4 live footage citadel . first post going yolo g... 1
... ... ...
955 someone long spy calls . someone explain swing... 1
956 chwy . banned everything stores picture someho... -1
957 please delete allowed anyone advice . great bu... 0
958 bought dollars worth etherium using brothers m... 0
959 made return month according average investor a... 0

Title body index 0:
'check age accounts take advice spambots lots brand new throwaway accounts spamming fuck sub also stop posting stupid shit need fucking posts thing dickheads. hold amc . time get back webull fuck robinhood wallstreets bets always hold short position app never come back app. grocery store stops selling tendies walmart stops selling favorite tendies get sue walmart target buy tendies calm. pay attention market prices access trading times know exactly. fuck robinhood brokerages manipulation discontinuing trading gme amc nok ect switch webull stick keep trading earn free stocks . hold ground gme amc want sell exactly want hold shares boys got. sndl move today brainer let sent moon. vix burn house worth buying vix futures way risky hell many used cash cow selling years higher would epic dont see reason would stop like oil sell going negative earlier year reverse. lurking finally lot money guys gme . biggest short squeeze world slv fuckin moon . instantly buy stock platforms make wait link account get. advice amc expr good stocks next run luv advice whole forum debate thanks. robinhood fucks ass woke gme find cant purchase shares gme always favorite store years spent thousands dollars games merchandise would great quit colluding sucking cocks sec attorneys disciplining users making good investments shame robinhood deserve get absolutely shit. happens fight system happens fight system start playing dirty prevent buying stocks hold tightly blame say system needs changed found way believe wsb done hold whatever hold like diamond hands know everyone. playing dirty gme amc longer supported . sundial growers amp genius brand robinhood supporting big gainers think smart move money still tied app. robinhood going robinhood going. mercy . robinhood halted gme buys move topic. robinhood one freezing things . pre market opening manulipation . grew shadows gme beginning never forget fallen hungry afraid . getting burned amc . (cont...)

CNN Architecture:
model = models.Sequential()
model.add(Input(shape=(300,)))
model.add(Embedding(input_dim=30818, output_dim=300, input_length=300))
model.add(layers.Conv1D(32, kernel_size=3, activation='relu'))
model.add(MaxPooling1D(pool_size=2))
model.add(layers.Conv1D(64, kernel_size=3, activation='relu'))
model.add(MaxPooling1D(pool_size=2))
model.add(Flatten())
model.add(Dropout(0.2))
model.add(Dense(3, activation='softmax'))

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education