Safe Haskell | None |
---|
- data Model = Model {}
- mkModel :: FeatSel -> [(Xs, Ys)] -> Model
- fromSet :: Set Feat -> Model
- fromMap :: Map Feat LogFloat -> Model
- toMap :: Model -> Map Feat LogFloat
- phi :: Model -> Feat -> LogFloat
- index :: Model -> Feat -> Maybe FeatIx
- onWord :: Model -> Xs -> Int -> CbIx -> LogFloat
- onTransition :: Model -> Xs -> Int -> CbIx -> CbIx -> CbIx -> LogFloat
Model
mkModel :: FeatSel -> [(Xs, Ys)] -> ModelSource
Construct model from a dataset given a feature selection function.
fromSet :: Set Feat -> ModelSource
Construct model from a feature set. All values will be set to 1 in log domain.
Potential
phi :: Model -> Feat -> LogFloatSource
Potential assigned to the feature -- exponential of the corresonding parameter.