Menu

How to install and run LMR??

Help
Anonymous
2001-07-18
2001-07-24
  • Anonymous

    Anonymous - 2001-07-18

    I've already read the manual about running LMR, but I still can't make it. Can you tell me the details about how to install and run LMR, and where can I get the installer or execution file?

     
    • Jason Baldridge

      Jason Baldridge - 2001-07-18

      You should be able to download the latest grokexe.jar file (I think it is grokexe-0.4.1.jar) and then run LMR by typing "java quipu.grokkit.lmr.LMR", after of course making sure that grokexe-0.4.1.jar is in your classpath.

      Just so you know, I am in the process of changing the way that lexicons are defined and created, so hopefully it will be a lot easier to define lexicons eventually.  (Though I don't know when since I'm really busy with other stuff at the moment).

      Jason

       
    • Anonymous

      Anonymous - 2001-07-19

      Sorry for bothering you again...
      Firstly, thanks for your answer.
      But I still have some trouble.
      When I type "java quipu.grokkit.lmr.LMR",I got the following messages:

      Parameters file not found.
      *********************************************
      You will see a bunch of error messages now,
      but don't be concerned.  Once LMR has opened,
      you can load a grammar or create a new one.
      *********************************************
      Exception in thread "main" java.lang.NullPointerException
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(Unknown Source)
              at quipu.grok.io.IoUtils.getLexicon(IoUtils.java:67)
              at quipu.grokkit.lmr.LMR.initComponents(LMR.java:203)
              at quipu.grokkit.lmr.LMR.<init>(LMR.java:66)
              at quipu.grokkit.lmr.LMR.main(LMR.java:240)

      what's wrong with it? Please tell me. Thank you very much...

       
      • Jason Baldridge

        Jason Baldridge - 2001-07-24

        To be honest, I would not worry about using LMR just now --- it's been a long time since I've used, and it will be made somewhat irrelevant in the next version of Grok since I don't have the time to update it for the new style of lexicons which I'll be integrating into Grok.  For now, you should be able to edit the XML without too much trouble --- just take one of the existing grammars and try to use it to create your own.

        However, if you really want to try to use LMR, you can take the following text:
        ------------------------------------------
        #LMR user parameters
        #Mon Mar 05 15:21:12 GMT+00:00 2001
        LMRy=171
        LMRx=260
        lexfile=/usr/contrib/jmb_aux/quipu/grokgram/BasicEnglish/lexicon
        morphfile=/usr/contrib/jmb_aux/quipu/grokgram/BasicEnglish/morph
        rulesfile=/usr/contrib/jmb_aux/quipu/grokgram/BasicEnglish/rules
        posfile=/usr/contrib/jmb_aux/quipu/grokgram/BasicEnglish/postags
        ------------------------------------------
        And save it (without the dashed lines) as as a file called ".lmr" in your HOME directory, and then change the paths to be where your grammar files are located.

        I never made LMR very robust since I didn't have the time, so sorry about the mess.  I personally find it easier to edit the XML directly.  I should probably point out that the entire parsing system of Grok is quite research oriented at the moment, so it has very few user friendly features.  It's the preprocessing stuff like part-of-speech tagging, sentence detection, and tokenization that are all quite robust and easy to use at present.

        Good luck!

        Jason

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.