This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express") | |
const app = express(); | |
app.use((req, res, next) => { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); | |
next(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gensim import utils | |
import gensim.parsing.preprocessing as gsp | |
filters = [ | |
gsp.strip_tags, | |
gsp.strip_punctuation, | |
gsp.strip_multiple_whitespaces, | |
gsp.strip_numeric, | |
gsp.remove_stopwords, | |
gsp.strip_short, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
from bs4 import BeautifulSoup as bs | |
base_url = 'https://www.dictionary.com/browse/' | |
try: | |
querry = sys.argv[1] | |
except: | |
print("Enter The World !") |