Oh, no it is not for security programming.
I am just running tests on a classifier and a bunch of features I implemented.
My data set is kind of limited in size. Therefore, I am running a bunch of tests "blindly", i.e. without engineering the features on the test set (which I have not see...
Hi,
I need to split a file of 20290 lines into two files randomly for 1000 times; each random split has to produce two subfiles, one representing 80%, the other 20% of the original 20290.
I have to make sure that each of the 1000 80-20 splits of the corpus, I get a different split.
Now, is...
Hi,
$f-measure = (2 * $recall * $precision) / ($recall + $precision);
gives me the following error message:
Can't modify substraction (-) in scalar assignment at line (the one above) near ");"
This is insane: why doens;t this work ?!
Grazia
This is how I solved it.
I called my script with
perl launchEval.pl 'c:/Program\ Files/eclipse/eclipse/workspace/ura'
and inside my script I have:
$cmd = "perl 'c:/Program\ Files/eclipse/eclipse/workspace/paraphrase-corpora/bin/getPrecisionRecall.pl' 'c:/Program\...
Guys, we have not solved the problem or I jsut messed up with your suggestions:
$dir = qq("c:/Program\ Files/eclipse/eclipse/workspace");
$cmd = "perl qq($dir/paraphrase-corpora/bin/getPrecisionRecall.pl) qq($dir_eval/$file)...
Now, similar problem:
@eval = `cd $dir_eval; ls *eval* | grep eval`;
would work in a regular Unix system, but with my Windows XP it is not:
@eval gets as value the stuff to teh right of = !
Maddening, the qq() do not work in this case ...
Grazia
Hi,
I am working on my PC running Windows XP
I have these few lines of code:
$dir = "c:/Program\ Files/eclipse/eclipse/workspace/ura";
print "DIR: $dir\n";
$cmd = "$dir/etc/run.bat $dir/build/edu/umd/simfinder/Eval ";
system($cmd);
I am trying to write a script that calls java classes to be...
I solved the problem:
The regex became large because in my code I had
foreach $item (@array) {
#.....
#......
if (certain condition){
quotemeta ($item);
}
#........
}
So, it ended up being "quotemeta"-ed in a loop and I had to...
I solved the problem:
The regex became large because in my code I had
foreach $item (@array) {
#.....
#......
if (certain condition){
quotemeta ($item);
}
#........
}
So, it ended up being "quotemeta"-ed in a loop and I had to...
I am able to give more info.
The pattern I am trying to match is this
$pattern = "(neurological|brain|seizure|paroxysmal|underlying|mental|nervous"
for which I have used quotemeta to escape all these characters.
I have noticed that between each pair of words separated by |, once I used...
I get this error message
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/: regexp too big at ...
But I do not have a regex with a seried of \\\\\\ at all !
Any ideas ?
Thank you,
Grazia
Hi,
I have two questions:
1. how does one check to see the encoding of a .txt file when working in a Unix environment ?
2. how does one check to see if there are characters that are not visible through the text editor one is using (pico, vi, emacs) but can create problems with regex when...
Hi,
I get an error message at a certain point in my code because evidently the regex is too large.
How can I know what the size of a regex is so that I can skip processing it ?
Thank you,
Grazia
I think that the input file had some encoding issues.
There must have been characters I could not see with my browser that caused problems with the regex.
I copied and pasted the input files into a .txt file and the problem has disappeared. I changed nothing in my code.
Thanks for your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.