qrmine package

Subpackages

Submodules

qrmine.content module

Copyright (C) 2020 Bell Eapen

This file is part of qrmine.

qrmine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

qrmine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with qrmine. If not, see <http://www.gnu.org/licenses/>.

class qrmine.content.Content(content)[source]

Bases: object

attributes(word, index=3)[source]
common_nouns(index=10)[source]
common_verbs(index=10)[source]
common_words(index=10)[source]
property content
property dep
dimensions(word, index=3)[source]
property doc
generate_summary(weight=10)[source]

[summary]

Parameters

weight (int, optional) – Parameter for summary generation weight. Defaults to 10.

Returns

A list of summary lines

Return type

list

property idx
property lemma
property pos
property pos_
property prob
process()[source]
sentences_with_common_nouns(index=10)[source]
property sentiment
spans_with_common_nouns(word)[source]
property tag
property word

qrmine.main module

qrmine.main.filter_data(inp, search, sentence, num)[source]
qrmine.main.generate_categories(data, tags, num)[source]
qrmine.main.generate_dict(data, num)[source]
qrmine.main.generate_summary(data, tags)[source]
qrmine.main.generate_topics(data, assign, num)[source]
qrmine.main.get_association(ml)[source]
qrmine.main.get_categories_association(data, num)[source]
qrmine.main.get_kmeans(ml, n=3)[source]
qrmine.main.get_knn(ml, n=3, r=3)[source]
qrmine.main.get_nnet(ml, n=3)[source]
qrmine.main.get_pca(ml, n=3, verbose=None)[source]
qrmine.main.get_sentiment(data, tags, sentence, verbose)[source]
qrmine.main.get_svm(ml)[source]
qrmine.main.main(input_file)[source]
qrmine.main.main_routine()[source]

qrmine.mlqrmine module

class qrmine.mlqrmine.MLQRMine[source]

Bases: object

property X
property csvfile
property dataset
encode_categorical()[source]
property epochs
get_apriori()[source]
get_association()[source]
get_centroids(c=1)[source]
get_kmeans(c=5)[source]
get_nnet_predictions()[source]
get_nnet_scores()[source]
get_pca(n=3)[source]
get_shape()[source]
property head
mark_missing()[source]
property model
oversample()[source]
prepare_data(oversample=False)[source]
read_csv()[source]
read_xy()[source]
restore_mark_missing()[source]
restore_oversample()[source]
property seed
svm_confusion_matrix()[source]

Generate confusion matrix for SVM

Returns

[list] – [description]

property titles
property y

qrmine.network module

class qrmine.network.Network[source]

Bases: object

draw_graph(draw=False)[source]
sents_to_network(sents)[source]
terms_to_network(terms)[source]

qrmine.nlp_qrmine module

class qrmine.nlp_qrmine.Qrmine[source]

Bases: object

category_association(num=10)[source]

Generates the support for itemsets

Parameters

num (int, optional) – number of categories to generate for each doc in corpus. . Defaults to 10.

category_basket(num=10)[source]

Generates a basket of categories for association

Parameters

num (int, optional) – number of categories to generate for each doc in corpus. Defaults to 10.

Returns

The list of lists (each list is categories in each document)

Return type

list

common_verbs(common_verbs)[source]
property content
filter_content(titles)[source]
property get_git_revision_hash
property get_git_revision_short_hash
load_matrix()[source]
min_topic(min_topic)[source]
print_categories(doc, num=10)[source]
print_dict(content, num=10)[source]
print_documents(top_n=2)[source]
static print_table(table)[source]
print_topics(numtopics=0)[source]
process_content()[source]
unique(list1)[source]

qrmine.readfiles module

class qrmine.readfiles.ReadData[source]

Bases: object

append(title, document)[source]
property content
property documents
read_file(file_names)[source]
property titles

qrmine.sentiment module

class qrmine.sentiment.Sentiment[source]

Bases: object

hamming(str1, str2)[source]
sentiment()[source]
sentiment_analyzer_scores(sentence)[source]
similarity(obj1, obj2, fuzzy_match=False, match_threshold=0.8)[source]

Module contents