Re: [Pharo-users] Could Pharo be more idiot-proof?

2014-02-04 Thread PBK Research
Daniel

Thanks for the comments. I have tried Prolog too, but didn't get very far. I
am hoping to deal with pretty arbitrary inputs (typically news stories from
internet newspapers etc), but initially just searching for key words and
phrases. So far I have used PP to construct a pretty good tokeniser to
identify words, sentences, punctuation etc, which was not very difficult. It
may be that I won't get very far, but I'm retired and I do this for fun, so
what the heck.

Peter Kenny

-Original Message-
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of
Daniel Lyons
Sent: 03 February 2014 18:52
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] Could Pharo be more idiot-proof?


PBK Research writes:
 As a supplementary point, I am trying to use PetitParser to parse 
 natural language. From the examples it is clear that PP is designed 
 with formal languages in mind. Am I wasting my time using it on 
 natural languages? Has anyone else tried this?

What are you trying to do with natural language? Do you have highly regular
input and a somewhat restricted domain? I have used Prolog DCGs to mess
around with this kind of thing, and if you have a lot of control over the
input and your expectations you can make progress with a tool for formal
languages, but if you want to do something sophisticated or support
arbitrary inputs, you're probably wasting your time.

--
Daniel Lyons




Re: [Pharo-users] Could Pharo be more idiot-proof?

2014-02-03 Thread PBK Research
Ben
 
Brilliant! Many thanks, it's all there! I just need to find my way around
Pharo - there is so much there.
 
Peter

  _  

From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of
Benjamin
Sent: 03 February 2014 10:38
To: Any question about pharo is welcome
Subject: Re: [Pharo-users] Could Pharo be more idiot-proof?


Open a new workspace. 
In the title bar there is a small black triangle (Window menu).

Close to the end, you should find 'Previous contents'
With a bit of luck, it should be there


Ben 

On 03 Feb 2014, at 11:35, PBK Research pe...@pbkresearch.co.uk wrote:


I have just done something stupid, so this is just letting off steam (and
maybe looking for someone else to blame!).
 
I have been playing with Moose (version 4.8), mainly because I want to
experiment with PetitParser. I am struggling a bit, but getting somewhere I
think. I have been trying out a lot of snippets in a workspace, before
getting down to producing proper code. In a fit of madness, thinking I was
closing a debugger window, I closed the workspace window. It looks as though
I have lost the contents, though I can probably reconstruct them from the
changes file. My main Smalltalk experience is with Dolphin Smalltalk, and
there, if you try to close a workspace, it asks if you want to save the
contents first. Could Pharo have something similar? - or am I the only idiot
to do this?
 
As a supplementary point, I am trying to use PetitParser to parse natural
language. From the examples it is clear that PP is designed with formal
languages in mind. Am I wasting my time using it on natural languages? Has
anyone else tried this?
 
Thanks for any advice
 
Peter Kenny




Re: [Pharo-users] Could Pharo be more idiot-proof?

2014-02-03 Thread Pharo4Stef

 I have just done something stupid, so this is just letting off steam (and 
 maybe looking for someone else to blame!).

Don’t worry. :)
 
 I have been playing with Moose (version 4.8), mainly because I want to 
 experiment with PetitParser. I am struggling a bit, but getting somewhere I 
 think. I have been trying out a lot of snippets in a workspace, before 
 getting down to producing proper code. In a fit of madness, thinking I was 
 closing a debugger window, I closed the workspace window. It looks as though 
 I have lost the contents, though I can probably reconstruct them from the 
 changes file. My main Smalltalk experience is with Dolphin Smalltalk, and 
 there, if you try to close a workspace, it asks if you want to save the 
 contents first. Could Pharo have something similar?

Normally it should. 

Now what I suggest is 
- use a class side methods like that you can version your scripts for 
free.

 - or am I the only idiot to do this?
  
 As a supplementary point, I am trying to use PetitParser to parse natural 
 language. From the examples it is clear that PP is designed with formal 
 languages in mind. Am I wasting my time using it on natural languages? Has 
 anyone else tried this?
  
 Thanks for any advice
  
 Peter Kenny



Re: [Pharo-users] Could Pharo be more idiot-proof?

2014-02-03 Thread Daniel Lyons

PBK Research writes:
 As a supplementary point, I am trying to use PetitParser to parse natural
 language. From the examples it is clear that PP is designed with formal
 languages in mind. Am I wasting my time using it on natural languages? Has
 anyone else tried this?

What are you trying to do with natural language? Do you have highly
regular input and a somewhat restricted domain? I have used Prolog DCGs
to mess around with this kind of thing, and if you have a lot of control
over the input and your expectations you can make progress with a tool
for formal languages, but if you want to do something sophisticated or
support arbitrary inputs, you're probably wasting your time.

-- 
Daniel Lyons