This is a multi-part message in MIME format.
------=_NextPart_000_001A_01C3FA0C.F8A5E8C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi,=20
i have a list within lists i.e. [[N V N ADJ] [N V V ADJ] [N ADV =
N V]] (please ignore the grammatical meanings!) and i need to assess =
which element occurs most often for each position, so return one list.=20
In this case the returned list would look something like [N V N ADJ] as =
these are the elements that occur with the highest frequency in their =
respective positions. If elements occur with the same frequency i will =
just randomly select one. I do have a "pseudo" way of doing it however =
it is quite undignified in the way it goes about it, i.e. lots of for =
loops etc. In general is there an easy way to do this, like a built in =
pop11 procedure that i havent managed to find?
Any help would be much appreciated, thanks,=20
Ian.
------=_NextPart_000_001A_01C3FA0C.F8A5E8C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2737.800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f6f6f6>
<DIV><FONT face=3DArial size=3D2>hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> i =
have a list=20
within lists i.e. [[N V N ADJ] [N V V ADJ] [N ADV N V]] (please ignore =
the=20
grammatical meanings!) and i need to assess which element occurs most =
often for=20
each position, so return one list. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>In this case the returned list would =
look something=20
like [N V N ADJ] as these are the elements that occur with the highest =
frequency=20
in their respective positions. If elements occur with the same frequency =
i will=20
just randomly select one. I do have a "pseudo" way of doing it however =
it is=20
quite undignified in the way it goes about it, i.e. lots of for loops =
etc. In=20
general is there an easy way to do this, like a built in pop11 procedure =
that i=20
havent managed to find?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Any help would be much appreciated, =
thanks,=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ian.</FONT></DIV></BODY></HTML>
------=_NextPart_000_001A_01C3FA0C.F8A5E8C0--
|