Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sushi Poem #4

Open
cklima616 opened this issue Apr 28, 2021 · 3 comments
Open

Sushi Poem #4

cklima616 opened this issue Apr 28, 2021 · 3 comments

Comments

@cklima616
Copy link

cklima616 commented Apr 28, 2021

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

@nathandloria
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants