Download nemotron-ocr/cpp/beam_decode/beam_decode.h from Metausermac13/nemotron-ocr-v2: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/Metausermac13/nemotron-ocr-v2/resolve/main/nemotron-ocr/cpp/beam_decode/beam_decode.h
- Command line
-
hf download hf://Metausermac13/nemotron-ocr-v2/nemotron-ocr/cpp/beam_decode/beam_decode.h
-
curl -L -o beam_decode.h https://huggingface.co/Metausermac13/nemotron-ocr-v2/resolve/main/nemotron-ocr/cpp/beam_decode/beam_decode.h
606 Bytes
| // SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| std::tuple<torch::Tensor, torch::Tensor> | |
| beam_decode(torch::Tensor probs, int64_t beamSize, int64_t blank, | |
| float minProb, | |
| const LanguageModel *langModel, | |
| float lmWeight, | |
| bool combineDuplicates); | |
| std::unique_ptr<LanguageModel> create_sbo_lm(const std::string &dataFilePath, token_mapping_t tokenMapping, float_t backoffWeight); | |