Skip to content
Snippets Groups Projects
Commit 947eac71 authored by Tomáš Kořistka's avatar Tomáš Kořistka
Browse files

Added authorship & fixed documentation

parent 62dcca50
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@ class Database:
return self.cursor.lastrowid
 
def drop(self):
"""
Deletes all data from tables
:return: None
"""
self.execute('DELETE FROM TermDocumentOccurrence')
self.execute('DELETE FROM Term')
self.execute('DELETE FROM Document')
......
# author : koristo1@fit.cvut.cz
import argparse
 
from src.preprocessor import preprocess_collection
......
# author: koristo1@fit.cvut.cz
import json
import os
import nltk
......@@ -82,7 +84,7 @@ class Preprocessor:
"""
Reads a document from file and processes it into terms and their frequencies
:param file_path: path to the document to open
:return: tuple of document path & dictionary of terms and their frequencies
:return: None
"""
self.terms = {} # reset
try:
......
# author : koristo1@fit.cvut.cz
from nltk.corpus import stopwords
 
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment