maybe using the =.. operator and counting the number of element of the resulting
list ? I'm sure there's probably a better way but this is the first which comes
in mind
X = name(A,B,C), X =.. L, etc...
Selon Sombat Khruathong <lli_unp@xxxxxxxx>:
> Dear All,
> Would you please to help me to find a way to count the number of arguments
> in a clause ?
>
> For example, if I have a predicate like
> "noun(gender,Number,Sens1,Sens2,_,love)", how can I ask prolog for an answer
> indicating the number of arguments of noun/6 ?
>
> Thank for your help,
> Sombat
>
>
> -----------------------------
> Assoc.Prof. Sombat KHRUATHONG
> 1.Chef du Laboratoire de Linguistique Informatique
> C/O Office de coordination pour la recherche Université Naresuan
> 65000 Phitanulok Thaïlande
> Tel : +66 55 -261000-4
> Fax : +66 55 -261005
> Web : http://dauphine.nu.ac.th/lli-unp
> ----------------------------
> 2. Chargé de Mission Francophone pour l'Université Naresuan
> Adresse de contact postale :
> 4 PLACE DE L'EUROPE
> 25000 BESANCON
> Tel: 0363081809
> Mobile : 0664749492
> Site personnel : http://dauphine.nu.ac.th
>
> 3. Membres du Réseau des Missions francophones de l'université Naresuan
> 1. Sombat KHRUATHONG, Président du Réseau
> Contqct : lli_unp@xxxxxxxx
> 2. Mme Raksi ANANTALAPOCHAI, Chargée de mission francophone pour
> l'université Naresuan de Phyao
> Contact: raksi_a@xxxxxxxxxxx
>
> ----------------------------
> Devise, après un certain temps de coordination avec quelques partenaires :
> On n'est jamais mieux servi que par soi-même.
>
> ---------------------------------
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
> exceptionnels pour appeler la France et l'international.Téléchargez la
> version beta.
|