home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / prolog / 2417 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nokia.fi!ntc02.tele.nokia.fi!larsson
  3. From: larsson@ntc02.tele.nokia.fi
  4. Subject: Reading text files in Prolog
  5. Message-ID: <1993Jan21.210835.1@ntc02.tele.nokia.fi>
  6. Lines: 34
  7. Sender: usenet@noknic.nokia.fi (USENET at noknic)
  8. Nntp-Posting-Host: ntc02.tele.nokia.fi
  9. Organization: Nokia Telecommunications.
  10. Date: Thu, 21 Jan 1993 19:08:35 GMT
  11.  
  12. Dear colleagues,
  13.  
  14. Here is a question I mistakenly addressed to Jamie believing
  15. it might be a FAQ:
  16.  
  17. I'm fairly new to the programming language Prolog. My primary
  18. intention is to use it for natural language processing.
  19.  
  20. Presently I've been able to run (and even to write) simple parsers,
  21. which will get one sentence at a time from the keyboard and produce
  22. a parse tree. So far so good.
  23.  
  24. But, trying to use these techniques for text processing purposes
  25. things suddenly get difficult. Texts usually come on files, often
  26. huges ones, which I would like to read for instance sentence by 
  27. sentence and parse. The difficulties arise because the system doesn't
  28. use strings internally. Another problem is how to keep track of my
  29. position in the file, when the system backtracks.
  30.  
  31. And finally, for compatibility and portbility the suggested method 
  32. for reading files should preferably also be compliant with the current 
  33. ISO Draft Standard for the language.
  34.  
  35. Thanks in advance for any hints and solutions from more
  36. experienced programmers.
  37.  
  38. Arne
  39.  
  40. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  41. Arne Larsson            Nokia Telecommunications
  42. Translator            Transmission Systems, Customer Services
  43. larsson@ntc02.tele.nokia.fi    P.O. Box 12, SF-02611 Espoo, Finland
  44.                 Phone +358 0 5117476, Fax +358 0 51044287
  45. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  46.