26 #ifndef SCRIBO_TOOLCHAIN_CONTENT_IN_DOC_HH
27 # define SCRIBO_TOOLCHAIN_CONTENT_IN_DOC_HH
33 # include <scribo/toolchain/internal/content_in_doc_functor.hh>
65 template <
typename I,
typename J>
66 document<mln_ch_value(I, def::lbl_type)>
69 bool find_line_seps =
true,
70 bool find_whitespace_seps =
true,
71 bool enable_ocr =
true,
72 const std::string& language = std::string(
"eng"),
73 bool verbose =
false);
76 # ifndef MLN_INCLUDE_ONLY
79 template <
typename I,
typename J>
80 document<mln_ch_value(I, def::lbl_type)>
84 bool find_whitespace_seps,
86 const std::string& language,
89 mln_precondition(
exact(input).is_valid());
90 mln_precondition(
exact(input_preproc).is_valid());
92 internal::content_in_doc_functor<J> f(
"noname");
93 f.enable_denoising = denoise;
94 f.enable_line_seps = find_line_seps;
95 f.enable_whitespace_seps = find_whitespace_seps;
96 f.ocr_language = language;
97 f.enable_ocr = enable_ocr;
100 document<mln_ch_value(I, def::lbl_type)> doc = f(input, input_preproc);
106 # endif // ! MLN_INCLUDE_ONLY
114 #endif // SCRIBO_TOOLCHAIN_CONTENT_IN_DOC_HH