Class InformationRetrieval
java.lang.Object
net.reyadeyat.nlp.information.retrieval.InformationRetrieval
- Since:
- 2023.01.01
- Author:
- Mohammad Nabil Mostafa code@reyadeyat.net
-
Constructor Summary
ConstructorsConstructorDescriptionInformationRetrieval(Connection jdbc_connection) InformationRetrieval(Connection jdbc_connection, InformationRetrievalParser document_parser) -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegercleanBuffer(char[] buffer, char[] buffer_processed, int len) static StringcleanString(String word) static IntegercreateBookDocument(Connection jdbc_connection, ParsingDocument parsing_document, Reader document_reader) static IntegercreateBookIfNotExists(Connection jdbc_connection, String book_name, String book_metadata, String book_lang, Integer book_release_year) static Stringstatic InformationRetrievalParsergetParserInstance(ParsingDocument parsing_document, Integer buffer_size) voidvoidindexDocument(Reader document_reader) static voidremoveBookDocument(Connection jdbc_connection, Integer document_id, Integer document_book_id) static BookselectBook(Connection jdbc_connection, Integer book_id) selectBookList(Connection jdbc_connection, ArrayList<Integer> book_id_list) static ArrayList<SearchingDocument>selectBookSearchingDocumentList(Connection jdbc_connection, Integer book_id) static ParsingDocumentselectParsingDocument(Connection jdbc_connection, Integer parsing_document_id) static SearchingDocumentselectSearchingDocument(Connection jdbc_connection, Integer searching_document_id) selectWordMatchList(Connection jdbc_connection, String[] word_list)
-
Constructor Details
-
InformationRetrieval
- Throws:
Exception
-
InformationRetrieval
public InformationRetrieval(Connection jdbc_connection, InformationRetrievalParser document_parser) throws Exception - Throws:
Exception
-
-
Method Details
-
indexDocument
- Throws:
Exception
-
indexDocument
- Throws:
Exception
-
createBookIfNotExists
public static Integer createBookIfNotExists(Connection jdbc_connection, String book_name, String book_metadata, String book_lang, Integer book_release_year) throws Exception - Throws:
Exception
-
selectBook
- Throws:
Exception
-
selectBookList
public static ArrayList<Book> selectBookList(Connection jdbc_connection, ArrayList<Integer> book_id_list) throws Exception - Throws:
Exception
-
createBookDocument
public static Integer createBookDocument(Connection jdbc_connection, ParsingDocument parsing_document, Reader document_reader) throws Exception - Throws:
Exception
-
removeBookDocument
public static void removeBookDocument(Connection jdbc_connection, Integer document_id, Integer document_book_id) throws Exception - Throws:
Exception
-
selectParsingDocument
public static ParsingDocument selectParsingDocument(Connection jdbc_connection, Integer parsing_document_id) throws Exception - Throws:
Exception
-
selectSearchingDocument
public static SearchingDocument selectSearchingDocument(Connection jdbc_connection, Integer searching_document_id) throws Exception - Throws:
Exception
-
selectBookSearchingDocumentList
public static ArrayList<SearchingDocument> selectBookSearchingDocumentList(Connection jdbc_connection, Integer book_id) throws Exception - Throws:
Exception
-
fixText
-
cleanString
-
cleanBuffer
-
selectWordMatchList
public static ArrayList<Word> selectWordMatchList(Connection jdbc_connection, String[] word_list) throws Exception - Throws:
Exception
-
getParserInstance
public static InformationRetrievalParser getParserInstance(ParsingDocument parsing_document, Integer buffer_size) throws Exception - Throws:
Exception
-