From 0f9024d49f7622d1c135aa2e3f9ddc6bc4349fb9 Mon Sep 17 00:00:00 2001
From: Patrick Simianer
Date: Sat, 3 Dec 2011 21:38:59 +0100
Subject: new rule count
---
dtrain/scfg/features/count/test.cc | 35 -----------------------------------
1 file changed, 35 deletions(-)
delete mode 100644 dtrain/scfg/features/count/test.cc
(limited to 'dtrain/scfg/features/count/test.cc')
diff --git a/dtrain/scfg/features/count/test.cc b/dtrain/scfg/features/count/test.cc
deleted file mode 100644
index 46efe5d0..00000000
--- a/dtrain/scfg/features/count/test.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-#include
-#include
-#include
-#include
-
-using namespace std;
-using namespace boost;
-
-
-int main()
-{
- string str="0:0 [X] ||| [X,1] musharrafs ||| [X,1] for musharraf ||| 1.78532981873 1.79239165783 0.301030009985 0.625125288963 1.95314443111 0.0 1.0 a=1 b=1 c=1 ||| 1-2";
-
- size_t i = 0, c = 0, beg = 0, end = 0;
- string::iterator it = str.begin();
- string s;
- while ( c != 12 ) {
- s = *it;
- if ( s == "|" ) c += 1;
- if ( beg == 0 && c == 9 ) beg = i+2;
- if ( c == 12 ) end = i-beg-3;
- it++;
- i++;
- }
-
- string sub = str.substr( beg, end );
- vector feats;
- boost::split( feats, sub, boost::is_any_of(" ") );
- vector::iterator f;
- for ( f = feats.begin(); f != feats.end(); f++ ) {
- if ( f->find("=1") != string::npos ) cout << *f << endl;
- }
-
-}
-
--
cgit v1.2.3