Common Lisp Package: MGL-EXAMPLE-MOVIE-REVIEW

README:

FUNCTION

Private

MAP-WORDS (FUNCTION STRING &KEY (WORD-SCANNER *DEFAULT-WORD-SCANNER*) (N-GRAMS *N-GRAMS*))

Apply FUNCTION to all stemmed words in STREAM.

STORY-ARRAY (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

STORY-FILE-ID (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

STORY-ID (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

STORY-LABEL (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

STORY-STRING (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

Undocumented

->BASE-STRING (STRING)

BEST-LLR-FEATURES (DOCUMENTS MAPPER N &KEY (START 0))

CLAMP-LABEL (LABEL ARRAY START END)

CLAMP-STORY (STORY ARRAY START END)

COPY-STORY (INSTANCE)

ENCODE-ALL (STORIES MAPPER WORDS &KEY (KIND BINARY))

ENCODE-LABEL (LABEL)

FUNCALL* (FN &REST ARGS)

INDEX-FEATURES (SCORED-FEATURES N &KEY (START 0))

INIT-LUMP (NAME BPN DEVIATION)

LOAD-STORIES (&OPTIONAL (DATA-DIR *MR-DIR*))

MAKE-PROBLEM (STORIES)

MAKE-SAMPLER (EXAMPLES &KEY MAX-N OMIT-LABEL-P SAMPLE-VISIBLE-P)

MAKE-STORY (&KEY ((LABEL DUM0) NIL) ((ID DUM1) NIL) ((FILE-ID DUM2) NIL) ((STRING DUM3) NIL) ((ARRAY DUM4) NIL))

MAKE-TEST-SAMPLER (&KEY OMIT-LABEL-P)

MAKE-TRAINING-SAMPLER (&KEY OMIT-LABEL-P)

MAP-STORY-WORDS (FN STORY)

MOST-FREQUENT-FEATURES (DOCUMENTS MAPPER N &KEY (START 0))

NORMALIZE-WORD (WORD)

READ-FOLDER (NAME LABEL)

SLURP-FILE (FILE)

SPLIT-FOLD (FOLD N-FOLDS &KEY (NEGATIVE-STORIES *NEGATIVE-STORIES*) (POSITIVE-STORIES *POSITIVE-STORIES*))

SETFSTORY-ARRAY (NEW-VALUE INSTANCE)

SETFSTORY-FILE-ID (NEW-VALUE INSTANCE)

SETFSTORY-ID (NEW-VALUE INSTANCE)

SETFSTORY-LABEL (NEW-VALUE INSTANCE)

STORY-P (OBJECT)

STORY-SIZE (STORY)

SETFSTORY-STRING (NEW-VALUE INSTANCE)

TEST-MAP-WORDS

TEST-SVM (&KEY (TRAINING-STORIES *TRAINING-STORIES*) (TEST-STORIES *TEST-STORIES*))

TRAIN-ALL (&KEY (FOLD 0) (N-FOLDS 5) UNROLLP)

TRAIN-MR-BPN (BPN &KEY (N-SOFTMAX-BATCHES 5) (N-WHOLE-BATCHES 0))

TRAIN-MR-BPN-GD (BPN)

TRAIN-MR-DBN

UNROLL-MR-DBN (DBN &KEY (NAME (CHUNK-LUMP-NAME 'F3 NIL)) (N-CLASSES 2))

VARIABLE

Private

*MR-DIR*

Set this to the directory where the unpacked data files reside.

Undocumented

*DEFAULT-WORD-SCANNER*

*FILENAME-SCANNER*

*N-GRAMS*

*N-WORDS*

CLASS

Private

Undocumented

MR-BASE-TRAINER

MR-BP-TRAINER

MR-BPN

MR-CG-BP-TRAINER

MR-DBN

MR-RBM

MR-RBM-SEGMENT-TRAINER

MR-RBM-TRAINER

STORY