diff options
Diffstat (limited to 'GIZA++-v2/snt2cooc.cpp')
-rw-r--r-- | GIZA++-v2/snt2cooc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GIZA++-v2/snt2cooc.cpp b/GIZA++-v2/snt2cooc.cpp index f8b9c7e..c6af6d4 100644 --- a/GIZA++-v2/snt2cooc.cpp +++ b/GIZA++-v2/snt2cooc.cpp @@ -1,6 +1,6 @@ #include <iostream> #include <string> -#include <strstream> +#include <sstream> #include <fstream> #include <map> #include <vector> @@ -16,7 +16,7 @@ void readVoc(istream&in,map<string,string>&voc) if( !in )cerr <<"Vocabulary does not exist.\n"; while(getline(in,line)) { - istrstream eingabe(line.c_str()); + istringstream eingabe(line); if( !(eingabe>>s1>>s2)) cerr << "ERROR in vocabulary '" << line << "'\n"; voc[s1]=s2; @@ -50,7 +50,7 @@ int main(int argc,char **argv) int totalElems=0; while(getline(t,line1)&&getline(t,line2)&&getline(t,line3)) { - istrstream eingabe1(line1.c_str()),eingabe2(line2.c_str()),eingabe3(line3.c_str()); + istringstream eingabe1(line1),eingabe2(line2),eingabe3(line3); double count; string word; eingabe1>>count; |