projects
/
umlisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd04d9b
)
r11463: add verbose option
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sun, 7 Jan 2007 04:12:37 +0000
(
04:12
+0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sun, 7 Jan 2007 04:12:37 +0000
(
04:12
+0000)
create-sql.lisp
patch
|
blob
|
history
diff --git
a/create-sql.lisp
b/create-sql.lisp
index 02a8701d3ff5cd9a4941c9ae3035a75b97fc2bf2..9311a820bc3980804a7e94ca9faf11677c23f1e0 100644
(file)
--- a/
create-sql.lisp
+++ b/
create-sql.lisp
@@
-252,7
+252,7
@@
This is much faster that using create-umls-db-insert."
(ensure-preparse)
(unless skip-translation
(when verbose (format t "UMLS Import: Converting text UMLS files to optimized format.~%"))
(ensure-preparse)
(unless skip-translation
(when verbose (format t "UMLS Import: Converting text UMLS files to optimized format.~%"))
- (translate-all-files
extension
))
+ (translate-all-files
:extension extension :verbose verbose
))
(let ((copy-cmd
(ecase (umls-sql-type)
(:mysql #'mysql-copy-cmd)
(let ((copy-cmd
(ecase (umls-sql-type)
(:mysql #'mysql-copy-cmd)
@@
-275,10
+275,11
@@
This is much faster that using create-umls-db-insert."
(When verbose (format t "UMLS Import: Completed.~%"))
t)
(When verbose (format t "UMLS Import: Completed.~%"))
t)
-(defun translate-all-files (&
optional (extension "-trans")
)
- "
Copy translated files and return postgresql copy commands to import
"
+(defun translate-all-files (&
key (extension "-trans") verbose
)
+ "
Translate all *umls-files* to optimized import format.
"
(make-noneng-index-file extension)
(dolist (f (remove "MRXW_NONENG.RRF" *umls-files* :test #'string= :key #'fil))
(make-noneng-index-file extension)
(dolist (f (remove "MRXW_NONENG.RRF" *umls-files* :test #'string= :key #'fil))
+ (when verbose (format t "UMLS Import: translating file ~S.~%" f))
(translate-umls-file f extension)))
(defun translate-umls-file (file extension)
(translate-umls-file f extension)))
(defun translate-umls-file (file extension)