public class DuplicateCheck
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
doubtRange |
static double |
duplicateThreshold |
Constructor and Description |
---|
DuplicateCheck() |
Modifier and Type | Method and Description |
---|---|
static double |
compareEntriesStrictly(BibtexEntry one,
BibtexEntry two) |
static BibtexEntry |
containsDuplicate(BibtexDatabase database,
BibtexEntry entry)
Goes through all entries in the given database, and if at least one of
them is a duplicate of the given entry, as per
Util.isDuplicate(BibtexEntry, BibtexEntry), the duplicate is returned.
|
static double |
correlateByWords(java.lang.String s1,
java.lang.String s2,
boolean truncate)
Compare two strings on the basis of word-by-word correlation analysis.
|
static double |
correlateStrings(java.lang.String s1,
java.lang.String s2,
boolean truncate) |
static boolean |
isDuplicate(BibtexEntry one,
BibtexEntry two)
Checks if the two entries represent the same publication.
|
static void |
main(java.lang.String[] args) |
public static double duplicateThreshold
public static double doubtRange
public static boolean isDuplicate(BibtexEntry one, BibtexEntry two)
one
- BibtexEntrytwo
- BibtexEntrypublic static double compareEntriesStrictly(BibtexEntry one, BibtexEntry two)
public static BibtexEntry containsDuplicate(BibtexDatabase database, BibtexEntry entry)
database
- The database to search.entry
- The entry of which we are looking for duplicates.public static double correlateByWords(java.lang.String s1, java.lang.String s2, boolean truncate)
s1
- The first strings2
- The second stringtruncate
- if true, always truncate the longer of two words to be compared to
harmonize their length. If false, use interpolation to harmonize the strings.public static double correlateStrings(java.lang.String s1, java.lang.String s2, boolean truncate)
public static void main(java.lang.String[] args)