- (let ((freq (ensure-integer
- (caar (mutex-sql-query
- (format nil "select count(*) from MRSO where SAB='~a'"
- (sab usrl)))))))
- (push (make-instance 'usrl_freq :usrl usrl :freq freq) freqs)))
- (sort freqs #'> :key #'usrl_freq-freq)))
-
-(defun find-ucon2_freq-coc-tui (ucon tui)
-"Return sorted list of tuples with ucon and freq that have co-occuring concepts of semantic type tui"
- (let ((ucon_freqs '()))
- (dolist (ucoc (s#coc ucon))
- (kmrcl:aif (cui2 ucoc)
- (let ((ucon2 (find-ucon-cui kmrcl::it)))
+ (let ((freq (ensure-integer
+ (caar (mutex-sql-query
+ (format nil "select count(*) from MRSO where SAB='~a'"
+ (sab usrl)))))))
+ (push (make-instance 'usrl_freq :sab (sab usrl) :srl (srl usrl)
+ :freq freq)
+ freqs)))
+ (sort freqs #'> :key #'freq)))
+
+#+mrcoc (defun find-ucon2_freq-coc-tui (ucon tui)
+"Return sorted list of tuples with ucon and freq that have co-occuring concepts of semantic type tui"
+ (let ((ucon_freqs '()))
+ (dolist (ucoc (s#coc ucon))
+ (aif (cui2 ucoc)
+ (let ((ucon2 (find-ucon-cui it)))