Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Graziella
  • Order by date
  1. Graziella

    true randomization

    Thank you very much for the tutorial. I needed it ! Thank you, Grazia
  2. Graziella

    true randomization

    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...
  3. Graziella

    true randomization

    Tony, what does your srand(time() ^($$ + ($$ <<15))) ; mean ? Why $$, why $$<<15. Grazia
  4. Graziella

    true randomization

    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...
  5. Graziella

    Math with Perl !!!

    Thank you, How silly on my part not to see that ! I guess it is time for a break. Grazia
  6. Graziella

    Math with Perl !!!

    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
  7. Graziella

    system function problem: help

    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\...
  8. Graziella

    system function problem: help

    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)...
  9. Graziella

    system function problem: help

    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
  10. Graziella

    system function problem: help

    thank you very much ! It works. Grazia
  11. Graziella

    system function problem: help

    I did it, but still the same problem
  12. Graziella

    system function problem: help

    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...
  13. Graziella

    regexp too big ! error !

    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...
  14. Graziella

    regexp too big

    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...
  15. Graziella

    regexp too big ! error !

    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...
  16. Graziella

    regexp too big ! error !

    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
  17. Graziella

    regexp too big

    regexp is too big
  18. Graziella

    &quot;hidden&quot; characters in .txt files

    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...
  19. Graziella

    regexp too big

    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
  20. Graziella

    concatenation problms and Perl 5.8

    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...

Part and Inventory Search

Back
Top