Safe Haskell | None |
---|
- data MeCab
- data MeCabError = MeCabError String
- data Node s = Node {
- nodeSurface :: s
- nodeFeature :: s
- nodeRlength :: Int
- nodeId :: Int
- nodeRcAttr :: Int
- nodeLcAttr :: Int
- nodePosid :: Int
- nodeCharType :: Int
- nodeStat :: Stat
- nodeIsBest :: Bool
- nodeAlpha :: Double
- nodeBeta :: Double
- nodeProb :: Double
- nodeWcost :: Int
- nodeCost :: Int
- data Stat
- class MeCabString s where
- toBS :: s -> ByteString
- fromBS :: ByteString -> s
- new :: [String] -> IO MeCab
- new2 :: String -> IO MeCab
- parse :: MeCabString s => MeCab -> s -> IO s
- parseToNodes :: MeCabString s => MeCab -> s -> IO [Node s]
- parseNBest :: MeCabString s => MeCab -> Int -> s -> IO s
- parseNBestInit :: MeCabString s => MeCab -> s -> IO ()
- nBestNext :: MeCabString s => MeCab -> IO (Maybe s)
- nBestNextNodes :: MeCabString s => MeCab -> IO (Maybe [Node s])
- getPartial :: MeCab -> IO Bool
- setPartial :: MeCab -> Bool -> IO ()
- getTheta :: MeCab -> IO Double
- setTheta :: MeCab -> Double -> IO ()
- getLatticeLevel :: MeCab -> IO Int
- setLatticeLevel :: MeCab -> Int -> IO ()
- getAllMorphs :: MeCab -> IO Int
- setAllMorphs :: MeCab -> Int -> IO ()
- version :: IO String
MeCab type
Error Type
data MeCabError Source
Node type
Node | |
|
String-like class
class MeCabString s whereSource
toBS :: s -> ByteStringSource
fromBS :: ByteString -> sSource
Initializing MeCab
Parsing
parse :: MeCabString s => MeCab -> s -> IO sSource
Parse given string and obtain results as a string format
parseToNodes :: MeCabString s => MeCab -> s -> IO [Node s]Source
Parse given string and obtain results as a nodes
N-best parsing
parseNBest :: MeCabString s => MeCab -> Int -> s -> IO sSource
Parse given string and obtain whole N-best results as a string format
parseNBestInit :: MeCabString s => MeCab -> s -> IO ()Source
Parse given string and prepare obtaining N-best results
nBestNextNodes :: MeCabString s => MeCab -> IO (Maybe [Node s])Source
Obtain next result as a nodes
Setting properties
getPartial :: MeCab -> IO BoolSource
setPartial :: MeCab -> Bool -> IO ()Source
getLatticeLevel :: MeCab -> IO IntSource
setLatticeLevel :: MeCab -> Int -> IO ()Source
getAllMorphs :: MeCab -> IO IntSource
setAllMorphs :: MeCab -> Int -> IO ()Source