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