summaryrefslogtreecommitdiff
path: root/utils/ts.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-09-17 00:20:52 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-09-17 00:20:52 +0100
commitb70a0be1c34bd177e8ac7c53cb466f226008cc52 (patch)
tree5180833eb54e8cae6a544b6ba9fb658dd008f06e /utils/ts.cc
parentb7bff725993ba7ffc960a46db9b75fc570671ab5 (diff)
add md5 hash function
Diffstat (limited to 'utils/ts.cc')
-rw-r--r--utils/ts.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/ts.cc b/utils/ts.cc
index 3694e076..bf4f8f69 100644
--- a/utils/ts.cc
+++ b/utils/ts.cc
@@ -7,6 +7,7 @@
#include "prob.h"
#include "sparse_vector.h"
#include "fast_sparse_vector.h"
+#include "stringlib.h"
using namespace std;
@@ -79,6 +80,11 @@ int main() {
y -= y;
}
cerr << "Counted " << c << " times\n";
+
+ cerr << md5("this is a test") << endl;
+ cerr << md5("some other ||| string is") << endl;
+ map<string,string> x; x["id"] = "12"; x["grammar"] = "/path/to/grammar.gz";
+ cerr << SGMLOpenSegTag(x) << endl;
return 0;
}