diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-03 11:50:25 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-03 11:50:25 +0200 |
commit | 1d0a1f48bb8b3a9544a3abf2ed0bc8d3d6d0bf5a (patch) | |
tree | 9b3b1787800cadc520ec81acb37f6c7aa94ae49f /skate | |
parent | f70b8304afbe0edeb570ecde90f05cf1d36cfffa (diff) | |
download | refcat-1d0a1f48bb8b3a9544a3abf2ed0bc8d3d6d0bf5a.tar.gz refcat-1d0a1f48bb8b3a9544a3abf2ed0bc8d3d6d0bf5a.zip |
update docs
Diffstat (limited to 'skate')
-rw-r--r-- | skate/verify.go | 9 | ||||
-rw-r--r-- | skate/xio/util.go | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/skate/verify.go b/skate/verify.go index 18b2f4e..842bedc 100644 --- a/skate/verify.go +++ b/skate/verify.go @@ -636,10 +636,11 @@ func doiPrefix(s string) string { // unifyDigits replaces all digit groups with a hopefully rare placeholder, // e.g. "<NUM>"; This is for discovering very similar, yet different -// publications, where e.g. titles differ only by a single char representing a -// year. Examples are yearly publications, e.g. "World Health Report 2020", -// where any plain similarity score would yield a high number, yet publications -// are obviously not the same. +// publications, where e.g. titles differ only by a single or few chars +// representing a year. Examples are yearly publications, e.g. "World Health +// Report 2020", "World Health Report 2021", ... where any plain similarity +// score would yield a high number, yet publications are obviously not the +// same. func unifyDigits(s string) string { return PatDigits.ReplaceAllString(s, "<NUM>") } diff --git a/skate/xio/util.go b/skate/xio/util.go index de3afb4..9967540 100644 --- a/skate/xio/util.go +++ b/skate/xio/util.go @@ -19,7 +19,7 @@ func OpenTwo(f1, f2 string) (g1, g2 *os.File, err error) { return g1, g2, nil } -// TabsToMapFile turns columns from a file into a map. +// TabsToMapFile turns two columns from a tabular file into a map. func TabsToMapFile(filename, sep string, kCol, vCol int) (map[string]string, error) { f, err := os.Open(filename) if err != nil { |