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: *

  1. Jurafsky

    $array[$i] =~ s/<unknown>/unknown/g;

    Can someone explain me what this means? I know how to make a substitution but is this a particular case? In the text there's no the word "unknown" and it seems strange to have "<unknown>". Thank you !
  2. Jurafsky

    suggestions for a spellchecker

    LoL Without code it's impossible to handle it I know. This is my code. use diagnostics; use warnings; my ($file_dictionary, $word, $line, $line1, $alph, $elt, $w, $transposition, $letter1, $letter2); my (@word, @altered_word, @filedictionary, @filetext, @dictionary, @addition, @replacement...
  3. Jurafsky

    suggestions for a spellchecker

    I've created a little spellchecker. This script works in this way: After reading each line of the text, realizes some corrections thanks to a comparison between a dictionary and the text itself. When it finds a word that doesn't exist in the dictionary, it corrects the words (giving one or...
  4. Jurafsky

    Regexp help -- matching filenames with different versions

    Is there a free software easy to use to test regex?
  5. Jurafsky

    print the first and the last element of an hash

    Thank you! now is clear! $regex .=$t9{$t}; it's the same as... $regex = $regex.$t9{$t}; !
  6. Jurafsky

    print the first and the last element of an hash

    Thank you (Grazie!), I found this $regex .= $t9{$num}; in an exercice. What is ".=" and how is it called? This is the first time I've seen it.
  7. Jurafsky

    print the first and the last element of an hash

    Hello all! I've a csv file like : City sunshine Temperature Ajaccio 2790 14.7 Lyon 2072 11.4 Marseille 2763 14.2 Brest 1729 10.8 Lille 1574 9.7 Paris 1833 11.2 Strasbourg 1685 9.7 I'd like to print just the city+temperature with the highest and the lowest temperature. How? #!/usr/bin/perl...
  8. Jurafsky

    morphological and syntactic analysis on a text

    That's great ! Thank you!!
  9. Jurafsky

    Parsing Text

    Is it perl 6?
  10. Jurafsky

    morphological and syntactic analysis on a text

    it's perfect ! I used the hash "punt" for the punctuation ! Is there a way to print the result apart from the first foreach loop?
  11. Jurafsky

    morphological and syntactic analysis on a text

    Hi all, I'm a newbie. I'm tryin to do an exercice but there's something that isn't working yet. I've a text and I would like to do the analysis of it. The text is in french language. "viens demain de bon matin" I would like to analyse the text creating some arrays with the endings. In some...

Part and Inventory Search

Back
Top