In the below code I had shown two methods to take screenshots from Python. This script will simply take screenshots without using any screenshot software. # Spelling Checker # Method 1 import textblob text = "mussage" print("original text: " + str(text)) checked = textblob.TextBlob(text) print("corrected text: " + str(rrect())) #Method 2 import autocorrect #Spell Checking with english language spell = autocorrect.Speller(lang='en') print(spell('cmputr')) print(spell('watr')) print(spell('survice')) □ Take Screenshots This awesome script will do the same spelling checker work but in Pythoneer way. You probably use different software or web app to correct your Spellings in your text. Check out the code below! # Movie_Recommendation System import numpy as np import lightfm import os from lightfm.datasets import fetch_movielens def movie_recommender(): movie_dataset = fetch_movielens(min_rating = 4.0) model = lightfm.LightFM(loss = 'warp') model.fit(movie_dataset, epochs=30, num_threads=2) temp, movies = movie_dataset.shape scores = model.predict(1, np.arange(movies)) top_movies = movie_dataset print() print(" Recommended Movies:") for x in top_movies: print(" %s" % x) movie_recommender() □ Spelling checker ![]() Do you know Python can recommend you the Movies too? This advanced script will be interesting for you because it will be a Movie recommender that you a database to recommend a good movie for your Spare time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |