Commit db8e0968 by xiaotong

class definition

parent 97b10301
...@@ -26,6 +26,22 @@ ...@@ -26,6 +26,22 @@
namespace transformer namespace transformer
{ {
/* The class orgnizes the search process. It calls predictors to generate
distributions of the predictions and prunes the search space by beam pruning.
It results in a graph where each path respresents a translation hypothsis.
The output can be the path with the highest model score. */
class T2TSearch
{
public:
/* constructor */
T2TSearch() {};
/* de-constructor */
~T2TSearch() {};
};
} }
#endif #endif
\ No newline at end of file
...@@ -27,6 +27,13 @@ ...@@ -27,6 +27,13 @@
namespace transformer namespace transformer
{ {
/* This class translates test sentences with a trained model. */
class T2TTester
{
public:
};
} }
#endif #endif
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论