sapt::imBitext< TKN > Class Template Reference

#include <ug_im_bitext.h>

Inheritance diagram for sapt::imBitext< TKN >:

Inheritance graph
[legend]
Collaboration diagram for sapt::imBitext< TKN >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

size_t revision () const
void open (std::string const base, std::string const L1, std::string L2)
 imBitext (SPTR< TokenIndex > const &V1, SPTR< TokenIndex > const &V2, size_t max_sample=5000, size_t num_workers=4)
 imBitext (size_t max_sample=5000, size_t num_workers=4)
 imBitext (imBitext const &other)
SPTR< imBitext< TKN > > add (std::vector< std::string > const &s1, std::vector< std::string > const &s2, std::vector< std::string > const &a) const
template<>
SPTR< imBitext< L2R_Token
< SimpleWordId > > > 
add (std::vector< std::string > const &s1, std::vector< std::string > const &s2, std::vector< std::string > const &aln) const
template<>
SPTR< imBitext< L2R_Token
< SimpleWordId > > > 
add (std::vector< std::string > const &s1, std::vector< std::string > const &s2, std::vector< std::string > const &aln) const


Detailed Description

template<typename TKN>
class sapt::imBitext< TKN >

Definition at line 8 of file ug_im_bitext.h.


Constructor & Destructor Documentation

template<typename TKN >
sapt::imBitext< TKN >::imBitext ( SPTR< TokenIndex > const &  V1,
SPTR< TokenIndex > const &  V2,
size_t  max_sample = 5000,
size_t  num_workers = 4 
) [inline]

Definition at line 54 of file ug_im_bitext.h.

References sapt::Bitext< TKN >::V1, and sapt::Bitext< TKN >::V2.

template<typename TKN >
sapt::imBitext< TKN >::imBitext ( size_t  max_sample = 5000,
size_t  num_workers = 4 
) [inline]

template<typename TKN >
sapt::imBitext< TKN >::imBitext ( imBitext< TKN > const &  other  )  [inline]


Member Function Documentation

template<>
SPTR< imBitext< L2R_Token< SimpleWordId > > > sapt::imBitext< L2R_Token< SimpleWordId > >::add ( std::vector< std::string > const &  s1,
std::vector< std::string > const &  s2,
std::vector< std::string > const &  aln 
) const [inline]

template<>
SPTR< imBitext< L2R_Token< SimpleWordId > > > sapt::imBitext< L2R_Token< SimpleWordId > >::add ( std::vector< std::string > const &  s1,
std::vector< std::string > const &  s2,
std::vector< std::string > const &  aln 
) const [inline]

Definition at line 10 of file ug_im_bitext.cc.

References aln, sapt::append(), tpt::binread(), tpt::binwrite(), HERE, k, T1, and UTIL_THROW_IF2.

Here is the call graph for this function:

template<typename TKN >
SPTR< imBitext< TKN > > sapt::imBitext< TKN >::add ( std::vector< std::string > const &  s1,
std::vector< std::string > const &  s2,
std::vector< std::string > const &  a 
) const [inline]

Definition at line 99 of file ug_im_bitext.h.

template<typename TKN >
void sapt::imBitext< TKN >::open ( std::string const   base,
std::string const   L1,
std::string  L2 
) [inline, virtual]

template<typename TKN>
size_t sapt::imBitext< TKN >::revision (  )  const [inline, virtual]

Reimplemented from sapt::Bitext< TKN >.

Definition at line 17 of file ug_im_bitext.h.


The documentation for this class was generated from the following file:

Generated on Thu Jul 6 00:34:26 2017 for Moses by  doxygen 1.5.9