26 #ifndef SCRIBO_TOOLCHAIN_CONTENT_IN_HDOC_HH
27 # define SCRIBO_TOOLCHAIN_CONTENT_IN_HDOC_HH
33 # include <scribo/toolchain/internal/content_in_hdoc_functor.hh>
63 template <
typename I,
typename J>
64 document<mln_ch_value(I, def::lbl_type)>
67 bool find_line_seps =
true,
68 bool find_whitespace_seps =
true,
69 bool enable_ocr =
true,
70 const std::string& language = std::string(
"eng"));
73 # ifndef MLN_INCLUDE_ONLY
76 template <
typename I,
typename J>
77 document<mln_ch_value(I, def::lbl_type)>
81 bool find_whitespace_seps,
83 const std::string& language)
85 mln_precondition(
exact(input).is_valid());
86 mln_precondition(
exact(input_preproc).is_valid());
88 internal::content_in_hdoc_functor<J> f(
"noname");
89 f.enable_denoising = denoise;
90 f.enable_line_seps = find_line_seps;
91 f.enable_whitespace_seps = find_whitespace_seps;
92 f.ocr_language = language;
93 f.enable_ocr = enable_ocr;
95 document<mln_ch_value(I, def::lbl_type)> doc = f(input, input_preproc);
101 # endif // ! MLN_INCLUDE_ONLY
109 #endif // SCRIBO_TOOLCHAIN_CONTENT_IN_HDOC_HH