First of all, thank you for this, it looks really interesting.
This may be my ignorance in regard to Lisp, but for what it is worth I had to do the following to get the server up and running.
I had to put
(require :asdf)
(load "./hunch.lisp")
as the first two lines of run.lisp.
I had to run
which seemed to install some libraries.
Install quicklisp as shown here: https://www.quicklisp.org/beta/#installation.
There is no .ann.yaml in the data dir, so I copied ner.yaml to data/.ann.yaml. After doing this and running sbcl --load run.lisp I get the following yaml parse error when selecting a text document.
2017-05-04 09:22:30 [ERROR]] When attempting to
set the slot's value to :|#<HASH-TABLE :TEST EQUALP :COUNT 2 {1006218B03}>| (SETF of SLOT-VALUE),
the slot PERS is missing from the object
#S(ANN::META
:FORMAT NIL
:SCHEMA NIL
:HIGHLIGHT NIL
:EXT "txt").
Backtrace for: #<SB-THREAD:THREAD "hunchentoot-worker-127.0.0.1:35687" RUNNING {100472E493}>
0: (TRIVIAL-BACKTRACE:PRINT-BACKTRACE-TO-STREAM #<SB-IMPL::STRING-OUTPUT-STREAM {1006524823}>)
1: (HUNCHENTOOT::GET-BACKTRACE)
2: ((FLET #:H0 :IN HUNCHENTOOT:HANDLE-REQUEST) #<SIMPLE-ERROR "~@<When attempting to ~A, the slot ~S is missing from the ~
object ~S.~@:>" {1006511593}>)
3: (SB-KERNEL::%SIGNAL #<SIMPLE-ERROR "~@<When attempting to ~A, the slot ~S is missing from the ~
object ~S.~@:>" {1006511593}>)
4: (ERROR "~@<When attempting to ~A, the slot ~S is missing from the ~
object ~S.~@:>" "set the slot's value to :|#<HASH-TABLE :TEST EQUALP :COUNT 2 {1006218B03}>| (SETF of SLOT-VALUE)" PERS #S(ANN::META :FORMAT NIL :SCHEMA NIL :HIGHLIGHT NIL :EXT "txt"))
5: ((:METHOD SLOT-MISSING (T T T T)) #<unused argument> #S(ANN::META :FORMAT NIL :SCHEMA NIL :HIGHLIGHT NIL :EXT "txt") PERS SETF :|#<HASH-TABLE :TEST EQUALP :COUNT 2 {1006218B03}>|) [fast-method]
6: (SB-PCL::SET-SLOT-VALUE #S(ANN::META :FORMAT NIL :SCHEMA NIL :HIGHLIGHT NIL :EXT "txt") PERS :|#<HASH-TABLE :TEST EQUALP :COUNT 2 {1006218B03}>|)
7: (ANN::YAML->STRUCT #S(ANN::META :FORMAT NIL :SCHEMA NIL :HIGHLIGHT NIL :EXT "txt") #P"/home/scum/github/ann/data/.ann.yaml")
8: (ANN::READ-META #P"/home/scum/github/ann/data/.ann.yaml")
9: (ANN::READ-FILE-WITH-ANNS "enron/enronsent44_01.txt")
10: (ANN::|HANDLE-/ANN/:FILE| :FILE NIL)
11: ((:METHOD HUNCHENTOOT:HANDLE-REQUEST (HUNCHENTOOT:ACCEPTOR HUNCHENTOOT:REQUEST)) #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 7001)> #<HUNCHENTOOT:REQUEST {10053D6A33}>) [fast-method]
12: ((:METHOD HUNCHENTOOT:PROCESS-REQUEST (T)) #<HUNCHENTOOT:REQUEST {10053D6A33}>) [fast-method]
13: (HUNCHENTOOT::DO-WITH-ACCEPTOR-REQUEST-COUNT-INCREMENTED #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 7001)> #<CLOSURE (LAMBDA NIL :IN HUNCHENTOOT:PROCESS-CONNECTION) {10053CFA0B}>)
14: ((:METHOD HUNCHENTOOT:PROCESS-CONNECTION (HUNCHENTOOT:ACCEPTOR T)) #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 7001)> #<USOCKET:STREAM-USOCKET {1004727913}>) [fast-method]
15: ((:METHOD HUNCHENTOOT:PROCESS-CONNECTION :AROUND (HUNCHENTOOT:ACCEPTOR T)) #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 7001)> #<USOCKET:STREAM-USOCKET {1004727913}>) [fast-method]
16: ((FLET HUNCHENTOOT::PROCESS-CONNECTION% :IN HUNCHENTOOT::HANDLE-INCOMING-CONNECTION%) #<HUNCHENTOOT:EASY-ACCEPTOR (host *, port 7001)> #<USOCKET:STREAM-USOCKET {1004727913}>)
17: ((LAMBDA NIL :IN BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS))
18: ((FLET #:WITHOUT-INTERRUPTS-BODY-1138 :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE))
19: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE))
20: ((FLET #:WITHOUT-INTERRUPTS-BODY-358 :IN SB-THREAD::CALL-WITH-MUTEX))
21: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE) {7FFFF5D0EC9B}> #<SB-THREAD:MUTEX "thread result lock" owner: #<SB-THREAD:THREAD "hunchentoot-worker-127.0.0.1:35687" RUNNING {100472E493}>> NIL T NIL)
22: (SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE #<SB-THREAD:THREAD "hunchentoot-worker-127.0.0.1:35687" RUNNING {100472E493}> NIL #<CLOSURE (LAMBDA NIL :IN BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS) {100472E43B}> (#<SB-THREAD:THREAD "hunchentoot-worker-127.0.0.1:35687" RUNNING {100472E493}> #<SB-THREAD:THREAD "hunchentoot-listener-*:7001" RUNNING {1003A71393}> #<SB-THREAD:THREAD "main thread" RUNNING {1001F1E783}>) NIL NIL NIL NIL)
23: ("foreign function: call_into_lisp")
24: ("foreign function: new_thread_trampoline")
First of all, thank you for this, it looks really interesting.
This may be my ignorance in regard to Lisp, but for what it is worth I had to do the following to get the server up and running.
I had to put
as the first two lines of
run.lisp.I had to run
which seemed to install some libraries.
Install quicklisp as shown here: https://www.quicklisp.org/beta/#installation.
There is no
.ann.yamlin the data dir, so I copied ner.yaml to data/.ann.yaml. After doing this and runningsbcl --load run.lispI get the following yaml parse error when selecting a text document.