Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion torchtext/csrc/vocab_factory.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <torchtext/csrc/vocab.h> // @manual

namespace py = pybind11;

namespace torchtext {

Vocab _build_vocab_from_text_file_using_python_tokenizer(
TORCHTEXT_API Vocab _build_vocab_from_text_file_using_python_tokenizer(
const std::string& file_path,
const int64_t min_freq,
py::object tokenizer);
Expand All @@ -14,6 +15,7 @@ TORCHTEXT_API Vocab _load_vocab_from_file(
const std::string& file_path,
const int64_t min_freq,
const int64_t num_cpus);

TORCHTEXT_API Vocab _build_vocab_from_text_file(
const std::string& file_path,
const int64_t min_freq,
Expand Down