Re: [greenstone-devel] Binary classifier

From Katherine Don
DateTue, 01 Jun 2004 10:10:50 +1200
Subject Re: [greenstone-devel] Binary classifier
In-Reply-To (20040528200326-GA9495-mercycorps-org)
Hi Doug

You can just use the List classifier - AZlist will group items
alphabetically, while List just creates one list. List can also take a
sort parameter, so you can do
classify List -metadata New -sort Title
so only the entries that have New metadata will be included, but they
will be sorted by their Title.

Regards,
Katherine Don

Doug Carter wrote:
> Hi all,
>
> I'm trying to implement a binary classifier. For example:
>
> I want a button on the nav bar called "new" that users can click on to
> get a list of all of the new documents.
>
> So I created a metadata element called "New", in the metadata.xml file
> and added this line to my collect.cfg file:
>
> classify AZList -metadata New
>
> For files that are new, I set the metadata element to "Yes" in the
> metadata.xml file. If it's not new, I leave it blank. (The AZList is
> the closest classifier that I thought would work for this.)
>
> After building the collection, it works perfectly, except that there
> is a letter "Y" at the top of list. I'm assuming this is because
> it's referring to the first letter in the word "Yes".
>
> Questions:
>
> How do I get rid of the "Y"?
>
> Is there a better way to implement a binary classifier?
>
> TIA,
>
> Doug Carter
> Mercy Corps
>
>
>
>
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>