diff options
author | Tetsuo Kiso <tetsuo.sakai21@gmail.com> | 2011-11-14 14:52:21 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo.sakai21@gmail.com> | 2011-11-14 14:52:21 +0400 |
commit | 2fde1cab0e1afcdc1578e3b74cd746d0bf1c64df (patch) | |
tree | 70ceda5d04b1ee534670172839143d217bf35dfc /mert | |
parent | 29c16d252a74d7e523f96de7f0d9022ea16c7770 (diff) |
Add missing headers.
Diffstat (limited to 'mert')
-rw-r--r-- | mert/BleuScorer.cpp | 3 | ||||
-rw-r--r-- | mert/Data.cpp | 1 | ||||
-rw-r--r-- | mert/FeatureStats.h | 5 | ||||
-rw-r--r-- | mert/Point.cpp | 1 | ||||
-rw-r--r-- | mert/Scorer.cpp | 1 | ||||
-rw-r--r-- | mert/Util.h | 1 |
6 files changed, 10 insertions, 2 deletions
diff --git a/mert/BleuScorer.cpp b/mert/BleuScorer.cpp index c7bd0e90f..67692eef7 100644 --- a/mert/BleuScorer.cpp +++ b/mert/BleuScorer.cpp @@ -1,5 +1,8 @@ #include "BleuScorer.h" + +#include <algorithm> #include <cmath> +#include <climits> #include <fstream> #include <iterator> #include <stdexcept> diff --git a/mert/Data.cpp b/mert/Data.cpp index a9b09357a..50792f039 100644 --- a/mert/Data.cpp +++ b/mert/Data.cpp @@ -6,6 +6,7 @@ * */ +#include <algorithm> #include <cassert> #include <cmath> #include <fstream> diff --git a/mert/FeatureStats.h b/mert/FeatureStats.h index 2ba17aed8..44858a5a3 100644 --- a/mert/FeatureStats.h +++ b/mert/FeatureStats.h @@ -9,8 +9,7 @@ #ifndef FEATURE_STATS_H #define FEATURE_STATS_H -using namespace std; - +#include <cstring> #include <fstream> #include <iostream> #include <map> @@ -18,6 +17,8 @@ using namespace std; #include <vector> #include "Types.h" +using namespace std; + // Minimal sparse vector class SparseVector { public: diff --git a/mert/Point.cpp b/mert/Point.cpp index 9b4899dc5..71338966a 100644 --- a/mert/Point.cpp +++ b/mert/Point.cpp @@ -3,6 +3,7 @@ #include <cmath> #include <cstdlib> #include <cassert> +#include <limits> #include "FeatureStats.h" using namespace std; diff --git a/mert/Scorer.cpp b/mert/Scorer.cpp index 0ba90ba60..55e1cd748 100644 --- a/mert/Scorer.cpp +++ b/mert/Scorer.cpp @@ -1,4 +1,5 @@ #include "Scorer.h" +#include <limits> Scorer::Scorer(const string& name, const string& config) : _name(name), _scoreData(0), _preserveCase(true) { diff --git a/mert/Util.h b/mert/Util.h index e59a9288d..da68685c3 100644 --- a/mert/Util.h +++ b/mert/Util.h @@ -9,6 +9,7 @@ #ifndef UTIL_H #define UTIL_H +#include <cstdlib> #include <stdexcept> #include <limits> #include <vector> |