~snowball-yiddish-dev/snowball-yiddish/trunk

« back to all changes in this revision

Viewing changes to website/demo.php

  • Committer: Jason Spashett
  • Date: 2012-04-14 13:12:57 UTC
  • Revision ID: jason@spashett.com-20120414131257-rv3ugy4u2iyoczdk
Add ISO 639-2, and 639-1 language codes

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
<form method="POST" action="demo.php">
8
8
Enter some words to stem, using the English stemming algorithm, and then click on Submit:<br>
9
9
<textarea name="words" rows="10" cols="50"><?php
 
10
$words = $_POST['words'];
10
11
$tmp = preg_replace('|\\\\|', '', $words);
11
12
echo "$tmp";
12
13
?></textarea>
31
32
  # Have a limit of 10000 bytes, just in case.
32
33
  fwrite($tmpfile, $words, 10000);
33
34
  fclose($tmpfile);
34
 
  passthru ("./$language/stemmer -p $tmpname");
 
35
  passthru ("/home/snowball-svn/pub/compiled/stemwords -p -i $tmpname");
35
36
  unlink($tmpname);
36
37
  echo "</pre>";
37
38
  echo "</TR></TD>";