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 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') |
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 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":"[email protected]", |