PlagResult module

class PlagResult.PlagResult(id1=None, id2=None)[source]

Bases: object

Class for the result of the comparison of two texts for plagiarism.

containsIdentifier(id)[source]

Checks if the given identifier is one of the identifier of this result.

getAlgorithmName()[source]

Gets the algorithm id used for the comparison.

getIdStringLength()[source]

Get the string length of the identifier strings as a List[id1strlength, id2strlenght]. Important for Visualization.

getIdentifier()[source]

Get the identifier for the compared texts.

getNormalizerName()[source]

Gets the normalizer id used for the comparison.

getSimilarity()[source]

Get similarity calculated in the Test for plagiarism.

getTiles()[source]
isSuspectPlagiarism()[source]

Returns boolean value indicating if there is plagiarism suspcicion.

setAlgorithmName(algName)[source]

Sets the algorithm id used for the comparison.

setIdStringLength(id1StringLength, id2StringLength)[source]

Set the string length of the identifier strings. Important for Visualization.

setIdentifier(id1, id2)[source]

Set identifier for each compared text.

setNormalizerName(normName)[source]

Sets the normalizer id used for the comparison.

setSimilarity(similarity)[source]

Set similarity calculated in the Test for plagiarism.

setSuspectedPlagiarism(value)[source]

set boolean value: True means there is plagiarism suspicion other False

setTiles(tiles)[source]

Set tiles found in the Test for plagiarism.