Showing posts with label Coding. Show all posts
Showing posts with label Coding. Show all posts

Natural Language Processing Using Python - Trump Speeches

Again, just having fun on the very first day of 2021.  Passing Trump's speeches into a markov algorithm to churn out random sentences.


Note that Trump of course did not say these sentences.  It is just generated by a computer algo.


Sentences I like are in underlined bold.  It is almost good to pass off as one of Trump's own sayings.


  1. We’ve been thinking about that now for a little while but I want 10%, 15%. Because the truth is that the establishment can’t believe it because it’s so bucolic, so beautiful.
  2. But that’s the statement of an inexperienced man…About we have to be able to get along with everybody.
  3. We have to be smart enough to stop it, folks.
  4. Of course if you listen to the pundits, we weren’t expected to win it; Jeb was expected to come in legally.
  5. But the whole point is that it brings us all together.
  6. One of the best-selling, all-time, and I mean this so, so strongly – the veterans hospitals – obviously they have problems.
  7. You can be tough, you’ve got to lead these men.
  8. I’m a little bit foolish.
  9. And I’m not knocking it.
  10. BUT WE HAVE TO TAKE CARE OF PEOPLE.
  11. But you know, you look at our roadways where they're crumbling.
  12. We have people – bureaucrats in Washington telling them how to educate their kids.
  13. I’m not watching any of them in the next week.
  14. Did you ever see what they do is they convince people like me not to do it right from here and from here.
  15. But it’s still the New York Times is a big problem, Russia’s a problem, China’s a problem.
  16. We want trade deals that Bernie was so vehemently against and he’s right on that – it’s such misrepresentation.
  17. I have many of these people that are morally corrupt.
  18. But if I’m forced to fight for the Second Amendment.
  19. They pay them hundreds of thousands of people and move to another location.
  20. But we are going to make our own products.
  21. And this is not a good sign.
  22. When I have somebody that’s going to be our president.
  23. Actually though what I got was worse than credit because they were the first victory I had.
  24. I mean, you look at Atlantic City.
  25. Look, Club for Growth – you ever watch the McLaughlin Report?
  26. Just take a look at your security, take a look at what's happening with the devaluations of so many countries.
  27. ...A poll came out and some of the Super PACs have total control over the people running for office.
  28. This is a wall too.


Natural Language Processing Using Python - Trump speeches

Got a Python code from Github that uses Markov algo to churn out random sentences using Trump's speeches as a database.


Check out some of the random sentences I got below:



Immigration is a privilege, and we should have kept 20,00 troops or something, we give Iraq.

ADD LEAST HE'S NOW ADMITTING IT IS GOING TO BE AS BEAUTIFUL AS A WALL COULD BE.

We have 93 million people that are incompetent.

When Ford moves to Mexico, I’m going to stop drugs from coming into New Hampshire.

When Carrier Air Conditioners, as you know, Afghanistan for $43 million – can you imagine we are ranked number 28 which is way down at the negotiating table without pre-conditions for years.

In other words, the worst elements in Mexico are being pushed into the United States and Israel is absolutely, totally unbreakable.

He mentions it but I want them to invest in our country.

Why do they have to do that, you know, I said bomb the oil, right?

And again, we have a situation in Afghanistan; we're spending tremendous amounts of money were spent – millions and millions of votes more.

So I told these political pros, you know, I hate to say 40 but I won’t even say.

We will someday in the not too distant future.

Again, many Americans must wonder why we get the crowds, you wonder why you get yourself in trouble.

Don’t forget, I didn’t want the credit for that.

I mean, they have no documentation and we don’t win very much.

I’d get along with him.

And I believe we’re going to be incredible.


Featured Post

Unlock Exclusive Deals and Savings: Join Amazon Prime Today!

Amazon is celebrating Prime members with a multitude of deals during Prime Day. The event will offer more deals than ever before, with new d...