Skip to content

Commit

Permalink
Adapt files to changed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
am9zZWY committed Jul 17, 2024
1 parent 23f59b0 commit 80dcdf2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 3 additions & 2 deletions engine/custom_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import pandas as pd

from custom_db import get_doc_by_id
from custom_tokenizer import tokenize_data
from sklearn.feature_extraction.text import TfidfVectorizer

from tokenizer import process_text


def preprocess_query(Q):
tokenized_query = tokenize_data(Q)
tokenized_query = process_text(Q)
return tokenized_query


Expand Down
2 changes: 1 addition & 1 deletion engine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Pipeline
from crawl import Crawler
from custom_db import index_pages, access_index, save_pages
from custom_tokenizer import Tokenizer
from tokenizer import Tokenizer
from index import Indexer

# Threading
Expand Down
9 changes: 0 additions & 9 deletions engine/test.py

This file was deleted.

0 comments on commit 80dcdf2

Please sign in to comment.