Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/issue78'
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Nov 10, 2014
2 parents 1ecf2e6 + 3d695bf commit bbd9a0f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/ner/decoder.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ namespace ner {
// data structure for lattice item
class LatticeItem {
public:
LatticeItem (int _i, int _l, double _score, const LatticeItem * _prev) :
LatticeItem (int _i, int _l, double _score, const LatticeItem * _prev) :
i(_i),
l(_l),
score(_score),
prev(_prev) {}

LatticeItem (int _l, double _score) :
LatticeItem (int _l, double _score) :
i(0),
l(_l),
score(_score),
Expand All @@ -34,7 +34,7 @@ class LatticeItem {

class Decoder {
public:
Decoder (int _L, rulebase::RuleBase & _base) : L(_L), base(_base) {}
Decoder (int _l, rulebase::RuleBase & _base) : L(_l), base(_base) {}
void decode(Instance * inst);

private:
Expand All @@ -61,7 +61,7 @@ class Decoder {
}
};

// maintain kest best list of
// maintain kest best list of
/*class KBestDecoder {
public:
typedef std::vector< std::vector<int> > KBestDecodeResult;
Expand Down
4 changes: 2 additions & 2 deletions src/parser/decoder1o.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ using namespace ltp::math;

class Decoder1O : public Decoder {
public:
Decoder1O(int _L = 1) : L(_L) {}
Decoder1O(int _l = 1) : L(_l) {}

protected:
void init_lattice(const Instance * inst);
void init_lattice(const Instance * inst);
void decode_projective(const Instance * inst);
void get_result(Instance * inst);
void free_lattice();
Expand Down
4 changes: 2 additions & 2 deletions src/parser/decoder2o.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace parser {
// 2nd-order decoder with dependency features and sibling features
class Decoder2O : public Decoder {
public:
Decoder2O(int _L = 1) : L(_L) {}
Decoder2O(int _l = 1) : L(_l) {}

public:
void init_lattice(const Instance * inst);
Expand All @@ -27,7 +27,7 @@ class Decoder2O : public Decoder {
// 2nd-order decoder with dependency, sibling and grand features
class Decoder2OCarreras : public Decoder {
public:
Decoder2OCarreras(int _L = 1) : L(_L) {}
Decoder2OCarreras(int _l = 1) : L(_l) {}

public:
void init_lattice(const Instance * inst);
Expand Down
6 changes: 3 additions & 3 deletions src/postagger/decoder.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ namespace postagger {
// data structure for lattice item
class LatticeItem {
public:
LatticeItem (int _i, int _l, double _score, const LatticeItem * _prev)
LatticeItem (int _i, int _l, double _score, const LatticeItem * _prev)
: i(_i),
l(_l),
score(_score),
prev(_prev) {}

LatticeItem (int _l, double _score)
LatticeItem (int _l, double _score)
: i(0),
l(_l),
score(_score),
Expand All @@ -34,7 +34,7 @@ class LatticeItem {

class Decoder {
public:
Decoder (int _L) : L(_L) {}
Decoder (int _l) : L(_l) {}
void decode(Instance * inst);
private:
void init_lattice(const Instance * inst);
Expand Down
2 changes: 1 addition & 1 deletion src/segmentor/decoder.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LatticeItem {

class Decoder {
public:
Decoder (int _L, rulebase::RuleBase & _base) : L(_L), base(_base) {}
Decoder (int _l, rulebase::RuleBase & _base) : L(_l), base(_base) {}
void decode(Instance * inst);

private:
Expand Down

0 comments on commit bbd9a0f

Please sign in to comment.