Skip to content

Instantly share code, notes, and snippets.

View YAHYA-H's full-sized avatar
🎯
Focusing

Yahya Hussein YAHYA-H

🎯
Focusing
View GitHub Profile
@YAHYA-H
YAHYA-H / signup.js
Last active September 19, 2018 13:04
from django.test import import TestCase
from rest_framework import status
from rest_framework import APIClient
class SignupTestCase(TestCase):
def setup():
self.client = APIClient
self.user = {
"username":"username001",
"email":"username001@example.com",
@YAHYA-H
YAHYA-H / search_engine.py
Last active June 3, 2023 10:54
Seaarch engine with BM25
import re
import nltk
from sklearn.datasets import fetch_20newsgroups
from rank_bm25 import BM25Okapi
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem import WordNetLemmatizer
nltk.download('punkt')
nltk.download('stopwords')