Releases: meta-toolkit/meta
MeTA v3.0.2
Bug fixes
- Fix issues using
MAKE_NUMERIC_IDENTIFIERinstead ofMAKE_NUMERIC_IDENTIFIER_UDLon GCC 7.1.1. - Work around (what we assume is) a bug on MSYS2 where
cmakewould link in additional exception handling libraries that would cause a crash during indexing by building themman-win32library as shared. - Silence fallthrough warnings on Clang from
murmur_hash.
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
672b10c398c1a193ba91dc8c0493d729ad3f73d9192ef33100baeb8afd4f5cde gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v3.0.1
New features
- Add an optional
xz{i,o}fstreamtometa::ioif compiled with liblzma available. util::disk_vector<const T>can now be used to specify a read-only view of a disk-backed vector.
Bug fixes
ir_eval::print_statsnow takes anum_docsparameter to properly display evaluation metrics at a certain cutoff point, which was always 5 beforehand. This fixes a bug inquery-runnerwhere the stats were not being computed according to the cutoff point specified in the configuration.ir_eval::avg_pnow correctly stops computing afternum_docs. Before, if you specifiednum_docsas a smaller value than the size of the result list, it would erroneously keep calculating until the end of the result list instead of stopping afternum_docselements.{inverted,forward}_indexcan now be loaded from read-only filesystems.
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
672b10c398c1a193ba91dc8c0493d729ad3f73d9192ef33100baeb8afd4f5cde gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v3.0.0
New features
-
Add an
embedding_analyzerthat represents documents with their averaged word vectors. -
Add a
parallel::reductionalgorithm designed for parallelizing complex accumulation operations (like an E step in an EM algorithm) -
Parallelize feature counting in feature selector using the new
parallel::reduction -
Add a
parallel::for_each_blockalgorithm to run functions on (relatively) equal sub-ranges of an iterator range in parallel -
Add a parallel merge sort as
parallel::sort -
Add a
util/traits.hheader for general useful traits -
Add a Markov model implementation in
sequence::markov_model -
Add a generic unsupervised HMM implementation. This implementation supports HMMs with discrete observations (what is used most often) and sequence observations (useful for log mining applications). The forward-backward algorithm is implemented using both the scaling method and the log-space method. The scaling method is used by default, but the log-space method is useful for HMMs with sequence observations to avoid underflow issues when the output probabilities themselves are very small.
-
Add the KL-divergence retrieval function using pseudo-relevance feedback with the two-component mixture-model approach of Zhai and Lafferty, called
kl_divergence_prf. This ranker internally can use anylanguage_model_rankersubclass likedirichlet_priororjelinek_mercerto perform the ranking of the feedback set and the result documents with respect to the modified query.The EM algorithm used for the two-component mixture model is provided as the
index::feedback::unigram_mixturefree function and returns the feedback model. -
Add the Rocchio algorithm (
rocchio) for pseudo-relevance feedback in the vector space model. -
Breaking Change. To facilitate the above to changes, we have also broken the
rankerhierarchy into one more level. At the top we haveranker, which has a pure virtual functionrank()that can be overridden to provide entirely custom ranking behavior. This is the class the KL-divergence and Rocchio methods derive from, as we need to re-define what it means to rank documents (first retrieving a feedback set, then ranking documents with respect to an updated query).Most of the time, however, you will want to derive from the second level
ranking_function, which is what was calledrankerbefore. This class provides a definition ofrank()to perform document-at-a-time ranking, and expects deriving classes to instead provideinitial_score()andscore_one()implementations to define the scoring function used for each document. Existing code that derived fromrankerprior to this version of MeTA likely needs to be changed to instead derive fromranking_function. -
Add the
util::transform_iteratorclass andutil::make_transform_iteratorfunction for providing iterators that transform their output according to a unary function. -
Breaking Change.
whitespace_tokenizernow emits only word tokens by default, suppressing all whitespace tokens. The old default was to emit tokens containing whitespace in addition to actual word tokens. The old behavior can be obtained by passingfalseto its constructor, or settingsuppress-whitespace = falsein its configuration group inconfig.toml.(Note that whitespace tokens are still needed if using asentence_boundaryfilter but, in nearly all circumstances,icu_tokenizershould be preferred.) -
Breaking Change. Co-occurrence counting for embeddings now uses history that crosses sentence boundaries by default. The old behavior (clearing the history when starting a new sentence) can be obtained by ensuring that a tokenizer is being used that emits sentence boundary tags and by setting
break-on-tags = truein the[embeddings]table ofconfig.toml. -
Breaking Change. All references in the embeddings library to "coocur" are have changed to "cooccur". This means that some files and binaries have been renamed. Much of the co-occurrence counting part of the embeddings library has also been moved to the public API.
-
Co-occurrence counting now is performed in parallel. Behavior of its merge strategy can be configured with the new
[embeddings]config parametermerge-fanout = n, which specifies the maximum number of on-disk chunks to allow before kicking off a multi-way merge (default 8).
Enhancements
- Add additional
packed_writeandpacked_readoverloads: forstd::pair,stats::dirichlet,stats::multinomial,util::dense_matrix, andutil::sparse_vector - Additional functions have been added to
ranker_factoryto allow construction/loading of language_model_ranker subclasses (useful for thekl_divergence_prfimplementation) - Add a
util::make_fixed_heaphelper function to simplify the declaration ofutil::fixed_heapclasses with lambda function comparators. - Add regression tests for rankers MAP and NDCG scores. This adds a new dataset
cranfieldthat contains non-binary relevance judgments to facilitate these new tests. - Bump bundled version of ICU to 58.2.
Bug Fixes
- Fix bug in NDCG calculation (ideal-DCG was computed using the wrong sorting order for non-binary judgments)
- Fix bug where the final chunks to be merged in index creation were not being deleted when merging completed
- Fix bug where GloVe training would allocate the embedding matrix before starting the shuffling process, causing it to exceed the "max-ram" config parameter.
- Fix bug with consuming MeTA from a build directory with
cmakewhen building a static ICU library.meta-utfis now forced to be a shared library, which (1) should save on binary sizes and (2) ensures that the statically build ICU is linked into thelibmeta-utf.solibrary to avoid undefined references to ICU functions. - Fix bug with consuming Release-mode MeTA libraries from another project being built in Debug mode. Before,
identifiers.hwould change behavior based on theNDEBUGmacro's setting. This behavior has been removed, and opaque identifiers are always on.
Deprecation
disk_index::doc_nameanddisk_index::doc_pathhave been deprecated in
favor of the more general (and less confusing)metadata(). They will be removed in a future major release.- Support for 32-bit architectures is provided on a best-effort basis. MeTA makes heavy use of memory mapping, which is best paired with a 64-bit address space. Please move to a 64-bit platform for using MeTA if at all possible (most consumer machines should support 64-bit if they were made in the last 5 years or so).
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
672b10c398c1a193ba91dc8c0493d729ad3f73d9192ef33100baeb8afd4f5cde gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
Please note that the embeddings model has changed. Please re-download.
MeTA v2.4.2
Bug Fixes
- Properly shuffle documents when doing an even-split classification test
- Make forward indexer listen to
indexer-num-threadsconfig option. - Use correct number of threads when deciding block sizes for
parallel_for - Add workaround to
filesystem::remove_allfor Windows systems to avoid spurious failures caused by virus scanners keeping files open after we deleted them - Fix invalid memory access in
gzstreambuf::underflow
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
2a75ab9750ad2eabfe1b53889b15a31f79bd2315f71c2a4a62f6364586a6042d gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v2.4.1
Bug fixes
- Eliminate excess warnings on Darwin about double preprocessor definitions
- Fix issue finding
config.hwhen used as a sub-project via
add_subdirectory()
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
2a75ab9750ad2eabfe1b53889b15a31f79bd2315f71c2a4a62f6364586a6042d gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v2.4.0
New features
-
Add a minimal perfect hashing implementation for
language_model, and unify
the querying interface with the existing language model. -
Add a CMake
install()command to install MeTA as a library (issue #143). For
example, once the library is installed, users can do:find_package(MeTA 2.4 REQUIRED) add_executable(my-program src/my_program.cpp) target_link_libraries(my-program meta-index) # or whatever libs needed from MeTA
-
Feature selection functionality added to
multiclass_datasetand
binary_datasetand views (issues #111, #149 and PR #150 thanks to @siddshuk).auto selector = features::make_selector(*config, training_vw); uint64_t total_features_selected = 20; selector->select(total_features_selected); auto filtered_dset = features::filter_dataset(dset, *selector);
-
Users can now, similar to
hash_append, declare standalone functions in the
same scope as their type calledpacked_readandpacked_writewhich will be
called byio::packed::readandio::packed::write, respectively, via argument-dependent lookup.
Bug fixes
- Fix edge-case bug in the succinct data structures
- Fix off-by-one error in
lm::diff
Enhancements
- Added functionality to the
meta::hashinglibrary:hash_appendoverload for
std::vector, manually-seeded hash function - Further isolate ICU in MeTA to allow CMake to
install() - Updates to EWS (UIUC) build guide
- Add
std::vectoroperations toio::packed - Consolidated all variants of chunk iterators into one template
- Add MeTA's citation to the README!
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
2a75ab9750ad2eabfe1b53889b15a31f79bd2315f71c2a4a62f6364586a6042d gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v2.3.0
New features
-
Forward and inverted indexes are now stored in one directory. To make use of your existing indexes, you will need to move their directories. For example, a configuration that used to look like the following
dataset = "20newsgroups" corpus = "line.toml" forward-index = "20news-fwd" inverted-index = "20news-inv"
will now look like the following
dataset = "20newsgroups" corpus = "line.toml" index = "20news-index"
and your folder structure should now look like
20news-index ├── fwd └── invYou can do this by simply moving the old folders around like so:
mkdir 20news-index mv 20news-fwd 20news-index/fwd mv 20news-inv 20news-index/inv
-
stats::multinomialnow can report the number of unique event types
counted (unique_events()) -
std::vectorcan now be hashed viahash_append.
Bug fixes
- Fix rounding bug in language model-based rankers. This bug caused
severely degraded performance for these rankers with short queries. The
unit tests have been improved to prevent such a regression in the
future.
Enhancements
- The bundled ICU version has been bumped to ICU 57.1.
- MeTA will now attempt to build its own version of ICU on Windows if it
fails to find a suitable ICU installed. - CI support for GCC 6.x was added for all three major platforms.
- CI support also uses a fixed version of LLVM/libc++ instead of trunk.
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
2a75ab9750ad2eabfe1b53889b15a31f79bd2315f71c2a4a62f6364586a6042d gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v2.2.0
New features
- Parallelized versions of PageRank and Personalized PageRank have been
added. A demo is available inwiki-page-rank; see the website for
more information on obtaining the required data. - Add a disk-based streaming minimal perfect hash function library. A
sub-component of this is a small memory-mapped succinct data structure
library for answering rank/select queries on bit vectors. - Much of our CMake magic has been moved into a separate project included
as a submodule: https://github.com/meta-toolkit/meta-cmake, which can
now be used in other projects to simplify initial build system
configuration.
Bug fixes
- Fix parameter settings in language model rankers not being range checked
(issue #134). - Fix incorrect incoming edge insertion in
directed_graph::add_edge(). - Fix
find_first_ofandfind_last_ofinutil::string_view.
Enhancements
forward_indexnow knows how to tokenize a document down to a
feature_vector, provided it was generated with a non-LIBSVM analyzer.- Allow loading of an existing index where its corpus is no longer
available. - Data is no longer shuffled in
batch_train. Shuffling the data
causes horrible access patterns in the postings file, so the data
should instead shuffled before indexing. util::array_views can now be constructed as empty.util::multiway_mergehas been made more generic. You can now specify
both the comparison function and merging criteria as parameters, which
default tooperator<andoperator==, respectively.- A simple utility classes
io::mifstreamandio::mofstreamhave been
added for places where a moveableifstreamorofstreamis desired
as a workaround for older standard libraries lacking these move
constructors. - The number of indexing threads can be controlled via the configuration
keyindexer-num-threads(which defaults to the number of threads on
the system), and the number of threads allowed to concurrently write to
disk can be controlled viaindexer-max-writers(which defaults to 8).
Model File Checksums (sha256)
d29bf8b4cbeef21db087cf8042efe5afe25c7bd3c460997728d58b92c24ec283 beam-search-constituency-parser-4.tar.gz
ce44c7d96a8339ff4b597f35a35534ccf93ab99b7d45cbbdddffe7e362b9c20e crf.tar.gz
2a75ab9750ad2eabfe1b53889b15a31f79bd2315f71c2a4a62f6364586a6042d gigaword-embeddings-50d.tar.gz
40cd87901eb29b69e57e4bca14bc2539d7d6b4ad5c186d6f3b1532a60c5163b0 greedy-constituency-parser.tar.gz
a0a3814c1f82780f1296d600eba260f474420aa2d93f000e390c71a0ddac42d9 greedy-perceptron-tagger.tar.gz
MeTA v2.1.0
New features
- Add the GloVe algorithm for
training word embeddings and a library classword_embeddingsfor loading and
querying trained embeddings. To facilitate returning word embeddings, a simple
util::array_viewclass was added. - Add simple vector math library (and move
fastapproxinto themath
namespace).
Bug fixes
- Fix
probe_map::extract()forinline_key_value_storagetype; old
implementation forgot to delete all sentinel values before returning the
vector. - Fix incorrect definition of
l1norm()insgd_model. - Fix
gmapcalculation where 0 average precision was ignored - Fix progress output in
multiway_merge.
Enhancements
- Improve performance of
printing::progress. Before,progress::operator()in
tight loops could dramatically hurt performance, particularly due to frequent
calls tostd::chrono::steady_clock::now(). Now,progress::operator()
simply sets an atomic iteration counter and a background thread periodically
wakes to update the progress output. - Allow full text storage in index as metadata field. If
store-full-text = true(default false) in the corpus config, the string metadata field
"content" will be added. This is to simplify the creation of full text
metadata: the user doesn't have to duplicate their dataset inmetadata.dat,
andmetadata.datwill still be somewhat human-readable without large strings
of full text added. - Allow
make_indexto take a user-supplied corpus object.
Miscellaneous
- ZLIB is now a required dependency.
- Switch to just using the standalone
./unit-testinstead ofctest. There
aren't really many advantages for us to using CTest at this point with the new
unit test framework, so just use our unit test executable.
MeTA v2.0.1
Bug fixes
- Fix issue where
metadata_parserwould not consume spaces in string
metadata fields. Thanks to hopsalot on the forum for the bug report! - Fix build issue on OS X with Xcode 6.4 and
clangrelated to their
shipped version ofstring_viewlacking a constto_string()method
Enhancements
- The
./profileexecutable ensures that the file exists before operating on
it. Thanks to @domarps for the PR! - Add a generic
util::multiway_mergealgorithm for performing the
merge-step of an external memory merge sort. - Build with the following Xcode versions on Travis CI:
- Xcode 6.1 and OS X 10.9 (as before)
- Xcode 6.4 and OS X 10.10 (new)
- Xcode 7.1.1 and OS X 10.10 (new)
- Xcode 7.2 and OS X 10.11 (new)