Re: Design question about pretree classifier

2010-01-04 Thread Aahz
In article , Steve Holden wrote: >Julian wrote: >> >> But: >> >> - none classification: return an exception or None? I think None is >> better, hence its not an exception that there is no classification but >> a defined state. What do you think? >> - many classifications: what to do? retun a se

Re: Design question about pretree classifier

2009-12-18 Thread Julian
On 18 Dez., 18:59, Steve Holden wrote: > Julian wrote: > > Hello, > > > I've got a design problem for a classifier. To make it short: it maps > > strings on strings. > > > Some strings have exactly one classification, some none and some more > > than one. > > > There's a method classify(self, word

Re: Design question about pretree classifier

2009-12-18 Thread Steve Holden
Julian wrote: > Hello, > > I've got a design problem for a classifier. To make it short: it maps > strings on strings. > > Some strings have exactly one classification, some none and some more > than one. > > There's a method classify(self, word) wich classifies a word. For the > first case ther

Design question about pretree classifier

2009-12-18 Thread Julian
Hello, I've got a design problem for a classifier. To make it short: it maps strings on strings. Some strings have exactly one classification, some none and some more than one. There's a method classify(self, word) wich classifies a word. For the first case there's no problem: - one classificat