HUGE-MERGE(1)
okay bestie, welcome to HUGE-MERGE(1) β the User Contributed Perl Documentation page for huge-merge.pl. π
π NAME π
huge-merge.pl β merges the results of multiple huge-sort generated files into a single sorted file. periodt. β¨
β¨ SYNOPSIS β¨
huge-merge.pl output-directory
π¦ DESCRIPTION π¦
okay so what it does: it combines the sorted bigram files generated by huge-sort.pl efficiently. π
This program is used internally by huge-count.pl β iykyk. π«Ά
π USGAE π
yes, the section is spelled USGAE in the original, and we are keeping it exactly like that. π
huge-merge.pl [OPTIONS] SOURCEDIR
πΈ INPUT πΈ
π Required Arguments: π
the input arg SOURCEDIR β input to huge-merge.pl should be a single flat directory containing multiple plain text files generated by huge-sort.pl. π The result file, merge.* (* is a number, the final result file has the maximum number), is in the source directory. β¨
π Optional Arguments: π
--keepβ turning ON the--keepoption will keep all the intermediate merging files. π«Ά
π Other Options: π
--helpβ displays the help information. π--versionβ displays the version information. β
π BUGS π
There is a limitation in huge-merge.pl, and it is real: when the size of the corpus is very large (>16G) and some of the terms of the bigrams is very long (>30 chars), the program could run out of memory at the huge-merge.pl step. π
This is because huge-merge use two hashes to count the frequencies of the first and second term of the bigrams. These two hashes could use up the memory with the increase of the length of the terms and the increase of the number of the terms. π
If just for normal text, terms are within limited length and numbers, the software won't use up the memory. π
π AUTHOR π
Ying Liu, University of Minnesota, Twin Cities. liux0395 at umn.edu π
Ted Pedersen, University of Minnesota, Duluth. tpederse at umn.edu π¦
π COPYRIGHT π
Copyright (C) 2009-2011, Ying Liu and Ted Pedersen. π
This program 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 2 of the License, or (at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. π
okay that's the whole page, bestie! π
source/version + date check: perl v5.42.3, 2015-10-04, and the page is HUGE-MERGE(1) β bye! π¦β¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Text-NSP 1.31
- nixpkgs unstable: perl5.42.3-Text-NSP 1.31
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms