Created
September 19, 2010 19:44
-
-
Save aria42/587057 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Gibbs Sampling State - All distributions are DirichletMultinomial | |
| ;; type-assigns: map word string to tag state (integer) | |
| ;; tag-prior: prior distr over tag assignment | |
| ;; trans-distrs: map of tag => P(tag' | tag) distribution | |
| ;; emission-distrs: tag => P(word | tag) distribution, word=string representation | |
| ;; feat-distrs: tag => feat-type => P(feat-val | feat-type,tag) distribution | |
| (defrecord State [type-assigns tag-prior trans-distrs emission-distrs feat-distrs]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment