Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dyer committed Aug 31, 2014
1 parent 20f8935 commit d6e1c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace std;

void ReadCoNNL(const char* fname, vector<vector<vector<string>>>& x, vector<vector<string>>& y) {
void ReadCoNLL(const char* fname, vector<vector<vector<string>>>& x, vector<vector<string>>& y) {
cerr << "Read " << fname << endl;
ifstream in(fname);
assert(in);
Expand Down
4 changes: 2 additions & 2 deletions crf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const vector<string> stop_labels = {STOP};

vector<string> labels;

void ReadCoNNL(const char* fn,
void ReadCoNLL(const char* fn,
vector<vector<vector<string>>>& xs,
vector<vector<string>>& ys);

Expand Down Expand Up @@ -96,7 +96,7 @@ int main(int argc, char** argv) {
// read training data
vector<vector<vector<string>>> train_x;
vector<vector<string>> train_y;
ReadCoNNL(argv[1], train_x, train_y);
ReadCoNLL(argv[1], train_x, train_y);
set<string> ls; for(auto& yy : train_y) for(auto& y : yy) ls.insert(y);
cerr << " LABELS:";
for(auto& y : ls) { cerr << ' ' << y; labels.push_back(y); }
Expand Down

0 comments on commit d6e1c84

Please sign in to comment.