NaPoGenMo / NaPoGenMo2021

National Poetry Generation Month 2021
9 stars 0 forks source link

Sushi Poem #4

Open cklima616 opened 3 years ago

cklima616 commented 3 years ago

Team Sushi's project for Cycle 3 in CMPSC 481. @noorbuchi @nathandloria @munzekm

nathandloria commented 3 years ago

Just for more clarification on our goals, we are proposing a natural word processing poem generator that intakes Google search terms from a user and uses the terms to locate relevant news articles. Then, based on parts of speech tokenizing, the tool will generate a poem which follows a coherent structure and contains content from the news articles!

noorbuchi commented 3 years ago

Our submission project can be found in this repository. Overall, many improvements can be added to increase the clarity of the generated poems. Aspects such as verb tenses and plural nouns also need to be explored more but overall, we're really happy with how this turned out.

This is a sample input that we used:

stocks
gamestop
politics
summer
movies
dogecoin
white house
elections
computer science
coronavirus
covid-19
borders
Elon Musk
research
congress
republicans
democrats

And the generated output was this:


------------------------
+---+ Your poem from the news surrounding stocks +---+
This inaccurate
Double either fold
Grant plus emailed
Especially
Pressure
------------------------

------------------------
+---+ Your poem from the news surrounding gamestop +---+
Every microvision
Swiss newswire whole
Follow but come
As
Experience
------------------------

------------------------
+---+ Your poem from the news surrounding politics +---+
Each seat
Ontario and unassailable
Persuade ngls sign
Nearly
Worker
------------------------

------------------------
+---+ Your poem from the news surrounding summer +---+
Every subscription
Fifa and unknown
Begin and establish
Very
Password
------------------------

------------------------
+---+ Your poem from the news surrounding movies +---+
Everett sister
Connery or pauline
D but see
Brutally
Girl
------------------------

------------------------
+---+ Your poem from the news surrounding dogecoin +---+
Both bill
Overnight but tesla
Experience but cathie
Later
Moniker
------------------------

------------------------
+---+ Your poem from the news surrounding white house +---+
An don
Warm llc operational
Come and add
Twice
Cdc
------------------------

------------------------
+---+ Your poem from the news surrounding elections +---+
Every nomination
Congressional neither usual
Leave nor permit
Smoothly
Anticipation
------------------------

------------------------
+---+ Your poem from the news surrounding computer science +---+
An source
Many teacher gabrielle
Get teacher procure
Recently
Edge
------------------------

------------------------
+---+ Your poem from the news surrounding coronavirus +---+
This care
Confirmed and successful
Knows less collect
Never
Home
------------------------

------------------------
+---+ Your poem from the news surrounding covid-19 +---+
That powerhouse
Biomedical et kathleen
Know et submit
Really
Saturation
------------------------

------------------------
+---+ Your poem from the news surrounding borders +---+
An morning
Prior minus long
Tell and u
Straight
Law
------------------------

------------------------
+---+ Your poem from the news surrounding Elon Musk +---+
Another nbc
Conspicuous musk saturday
Survive either read
Definitely
Software
------------------------

------------------------
+---+ Your poem from the news surrounding research +---+
Any undergraduate
Transparent or rebecca
Merge or love
Especially
Satellite
------------------------

------------------------
+---+ Your poem from the news surrounding congress +---+
These ally
Website nor modest
Play and fund
Digitally
Economist
------------------------

------------------------
+---+ Your poem from the news surrounding republicans +---+
The brown
Live and widespread
Descend and defend
Handily
Disability
------------------------

------------------------
+---+ Your poem from the news surrounding democrats +---+
This florida
Favorable and little
Chose but talk
Broadcast
Data
------------------------
cklima616 commented 3 years ago

The gen.py file generates different outputs for the same given term, as well. For example, it produced these two terminal outputs when given the term "pandemic" as a parameter.

Try #1:

Please enter the desired search term: pandemic

+---+ Your poem from the news surrounding pandemic +---+

Any performance
Surreal either current
Feel or spawn
Nearly
Reality

Try #2:

Please enter the desired search term: pandemic

+---+ Your poem from the news surrounding pandemic +---+

Another shift
Middle or particular
Allow but usher
Thereby
Expansion