bigram_check module¶
-
bigram_check.
compare
(bigramss1, bigramss2)[source]¶ returns bigrams of text using ngram(text.split(),2) :param bigrams1: bigrams1 :param bigrams2: bigrams2 :type bigrams1: list :type bigrams2: list :returns: common :rtype: list
-
bigram_check.
inputfile
(path)[source]¶ returns text from file {0}.txt
Parameters: path (str) – C:/Python27/corp/*.txt Returns: *.txt.read() Return type: str
-
bigram_check.
plagcheck
(textt1, textt2)[source]¶ returns Similarity between reference document al.txt and test document {0}.txt(Bigrams) returns Intersection of Bigrams between documents and the ratio of Plagiarism by Bigram-matching :param textt1: text1 :param textt2: text2 :type textt1: str :type textt2: str :returns: a –output of compare(bigramss1,bigramss2) :rtype: list