Turi Create  4.0
unity_text.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_UNITY_TEXT_H
7 #define TURI_UNITY_TEXT_H
8 
9 #include <model_server/lib/toolkit_function_specification.hpp>
10 #include <model_server/lib/variant.hpp>
11 
12 namespace turi {
13 namespace text {
14 
15 /**
16  *
17  */
18 variant_map_type init(variant_map_type& params);
19 
20 /**
21  */
22 variant_map_type train(variant_map_type& params);
23 
24 /**
25  */
26 variant_map_type get_topic(variant_map_type& params);
27 
28 /**
29  *
30  */
31 variant_map_type predict(variant_map_type& params);
32 
33 /**
34  */
35 variant_map_type summary(variant_map_type& params);
36 
37 /**
38  */
39 variant_map_type get_training_stats(variant_map_type& params);
40 
41 
42 std::vector<toolkit_function_specification> get_toolkit_function_registration();
43 
44 }
45 }
46 
47 #endif /* TURI_UNITY_TEXT_H */