<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">Thank you very much for your answer. But if I have two scripts for a word, and the first script generates 358 units (107 units - correct) and the second script - 497 units (471 units - correct) after my hand-validation of the list, which I get using "print lower-words" (this command helps me to provide output in .txt file, because of utf8 code, which isn't visible in xfst), does it mean that the first script is not a correct one? Which of this two scripts is better? </span><br></div><div style="color: rgb(0, 0, 0); font-size:
16px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">Thank you in advance,</span></div><div></div><div> </div><div><b>Irina L</b></div> <div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Mike Maxwell <maxwell@umiacs.umd.edu><br> <b><span style="font-weight: bold;">To:</span></b> Eirini LS <eirini_ls@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "corpora@uib.no" <corpora@uib.no> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, January 17, 2013 3:58 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Corpora-List] (no
subject)<br> </font> </div> <br>
On 1/15/2013 12:28 PM, Eirini LS wrote:<br>> I was a bit confused, when a person who has created an analyzer<br>> (using xerox calculus, lexc) argued that the module works only<br>> for analysis, but doesn't generates anything and nobody can use<br>> it in other direction (using lookup, recall). It is not right to<br>> read a list that it generates using a command "print lower-words".<br>> Is it right? How can I check the quality of an analyzer?<br><br>Since no one has responded to this, I'll try.<br><br>The Xerox Finite State Tools (both lexc and xfst) are inherently bidirectional; if you can analyze words, you can also generate from whatever underlying representation the writer of the parser code has chosen. That is, if 'cats' analyzes as 'cat+PL', then you can input 'cat+PL' in generate mode, and it will give you 'cats'.<br><br>What the person you talked to may have been referring to is the fact that (if I'm remembering
correctly) the standard version of lexc (and xfst) places a limit on how many "words" it will print with "print words" (I wasn't thinking there was a limit on print-lower-words, but I may be wrong). As I understand it, this has to do with the fact that Xerox was trying to protect its investment in the code that produced upper/lower pairs from a lexicon plus rules--otherwise, you could compile a transducer using lexc and/or xfst, dump the upper/lower pairs, and input those pairs into some simple-to-build and unlicensed FST which had no compilation capability. There was a commercial version of the tools which cost considerably more, and which could be used to build commercial and distributable FSTs. But I am not a lawyer, and my memory of that is fuzzy. If you need more information, you should contact Lauri Karttunen and Ken Beesley, who wrote the book on xfst and lexc (literally and figuratively).<br><br>Also, there is now an open
source tool, foma, which does most of what xfst did, with the exception of compile-replace (used for some kinds of reduplication); but I believe foma has a work-around for this. The compile-replace algorithm was patented.<br><br>Checking the quality of a morph analyzer like xfst/lexc (or any other such tools) is a different question. There are lots of ways to do it; one we used was to run test cases (words to be parsed) through xfst and hand-validate the output. The input/output pairs were stored in a version control system, so as to allow regression testing. There are other ways as well.<br><br>For the record, I would not use "print lower-words" for testing the parser, since that doesn't tell you whether you get the *correct* analysis.<br>-- Mike Maxwell<br> <a ymailto="mailto:maxwell@umiacs.umd.edu" href="mailto:maxwell@umiacs.umd.edu">maxwell@umiacs.umd.edu</a><br> "My
definition of an interesting universe is<br> one that has the capacity to study itself."<br> --Stephen Eastmond<br><br><br> </div> </div> </div></body></html>