Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ PYBIND11_MODULE(_core, m)
[&](VW::cs_label* cs_label) { ex.l.cs = *cs_label; },
},
label);
});
})
.def("_get_tag", [](VW::example& ex) -> std::string { return std::string(ex.tag.data(), ex.tag.size()); });

py::class_<workspace_with_logger_contexts>(m, "Workspace")
.def(py::init(
Expand Down
1 change: 1 addition & 0 deletions src/vowpal_wabbit_next/_core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class DenseParameters():
class Example():
def __init__(self) -> None: ...
def _get_label(self, arg0: LabelType) -> typing.Union[SimpleLabel, MulticlassLabel, CBLabel, CSLabel, None]: ...
def _get_tag(self) -> str: ...
def _is_newline(self) -> bool: ...
def _set_label(self, arg0: typing.Union[SimpleLabel, MulticlassLabel, CBLabel, CSLabel, None]) -> None: ...
pass
Expand Down