(clrhash cuisui-lrl-hash)
(clrhash sab-srl-hash))
(setf
- pfstr-hash (make-hash-table :size 1300000)
- cui-lrl-hash (make-hash-table :size 1300000)
- lui-lrl-hash (make-hash-table :size 4600000)
- sui-lrl-hash (make-hash-table :size 5100000)
- cuisui-lrl-hash (make-hash-table :size 2000000)
- sab-srl-hash (make-hash-table :size 100 :test 'equal))))
+ pfstr-hash (make-hash-table :size 1500000)
+ cui-lrl-hash (make-hash-table :size 1500000)
+ lui-lrl-hash (make-hash-table :size 5000000)
+ sui-lrl-hash (make-hash-table :size 6000000)
+ cuisui-lrl-hash (make-hash-table :size 6000000)
+ sab-srl-hash (make-hash-table :size 200 :test 'equal))))
(defun ensure-preparse (&optional (force-read nil))
(when (and *preparse-hash-init?* (not force-read))
(return-from ensure-preparse 'already-done))
(make-preparse-hash-table)
(let ((counter 0))
- (declare (fixnum counter))
+ (declare (fixnum counter)
+ (ignorable counter))
(with-umls-file (line "MRCONSO.RRF")
(let ((cui (parse-ui (nth 0 line)))
(lui (parse-ui (nth 3 line)))
("SUI" "MRCONSO") ("SAUI" "MRCONSO") ("CODE" "MRCONSO")
("SCUI" "MRCONSO")
("CUI" "MRDEF")
- ("CUI1" "MRREL") ("CUI2" "MRREL")
+ ("CUI1" "MRREL") ("CUI2" "MRREL") ("SAB" "MRREL")
("RUI" "MRREL") ("AUI1" "MRREL") ("AUI2" "MRREL")
("CUI" "MRSAT") ("LUI" "MRSAT") ("SUI" "MRSAT")
("METAUI" "MRSAT") ("ATN" "MRSAT")
(defun gen-ufiles-generic (files-filename dir)
-"Initialize all LEX file structures"
+"Initialize generic UMLS file structures"
(let ((files '()))
(with-umls-file (line files-filename)
(destructuring-bind (fil des fmt cls rws bts) line