Copyright | © 2018 bruno cuconato |
---|---|
License | LPGL-3 |
Maintainer | bruno cuconato <bcclaro+hackage@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Defines major IO functions.
Synopsis
- readConlluFileWith :: Parser Sent -> FilePath -> IO Doc
- readDirectoryWith :: Parser Sent -> FilePath -> IO [Doc]
- readConlluWith :: Parser Sent -> FilePath -> IO [Doc]
- readConlluFile :: FilePath -> IO Doc
- readDirectory :: FilePath -> IO [Doc]
- readConllu :: FilePath -> IO [Doc]
- writeConlluFile :: FilePath -> Doc -> IO ()
- readAndPrintConllu :: FilePath -> IO ()
- diffConllu :: FilePath -> FilePath -> IO ()
read functions
readers using a customized parser
readDirectoryWith :: Parser Sent -> FilePath -> IO [Doc] Source #
reads all the files in a directory as CoNLL-U files with a customized parser.
readConlluWith :: Parser Sent -> FilePath -> IO [Doc] Source #
reads a file or a directory as CoNLL-U files with a customized parser.
readers using default parsers
write
readAndPrintConllu :: FilePath -> IO () Source #
reads and prints the CoNLL-U files given.