Sha256: 751a7b31e9314476d15ecc3f581bde4976c5c56683705a7d3a7f9b216b466d68
Contents?: true
Size: 939 Bytes
Versions: 3
Compression:
Stored size: 939 Bytes
Contents
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "real.h" #include <algorithm> #include <fstream> #include <vector> #if defined(__clang__) || defined(__GNUC__) #define FASTTEXT_DEPRECATED(msg) __attribute__((__deprecated__(msg))) #elif defined(_MSC_VER) #define FASTTEXT_DEPRECATED(msg) __declspec(deprecated(msg)) #else #define FASTTEXT_DEPRECATED(msg) #endif namespace fasttext { using Predictions = std::vector<std::pair<real, int32_t>>; namespace utils { int64_t size(std::ifstream&); void seek(std::ifstream&, int64_t); template <typename T> bool contains(const std::vector<T>& container, const T& value) { return std::find(container.begin(), container.end(), value) != container.end(); } } // namespace utils } // namespace fasttext
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fasttext-0.1.2 | vendor/fastText/src/utils.h |
fasttext-0.1.1 | vendor/fastText/src/utils.h |
fasttext-0.1.0 | vendor/fastText/src/utils.h |