| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
CoNaLa
Contents
Description
Haskell bindings for the CoNaLa dataset [1], Code/Natural Language Challenge
This challenge was designed to test systems for generating program snippets from natural language. For example, if the input is sort list x in reverse order, then the system would be required to output x.sort(reverse=True) in Python.
References
Synopsis
- sourceDataset :: MonadResource m => FilePath -> ConduitT a (Either ParserError Item) m ()
 - data Item = Item {
- intent :: Text
 - rewritten_intent :: Text
 - snippet :: Text
 - question_id :: QId
 
 - newtype QId = QId Int
 
Documentation
Arguments
| :: MonadResource m | |
| => FilePath | path of dataset file  | 
| -> ConduitT a (Either ParserError Item) m () | 
Stream the dataset from file
As of May 2022 the dataset can be downloaded from http://www.phontron.com/download/conala-corpus-v1.1.zip
Types
Dataset item
Constructors
| Item | |
Fields 
  | |
Instances
| Eq Item Source # | |
| Show Item Source # | |
| Generic Item Source # | |
| ToJSON Item Source # | |
| FromJSON Item Source # | |
| type Rep Item Source # | |
Defined in CoNaLa type Rep Item = D1 ('MetaData "Item" "CoNaLa" "conala-dataset-0.1.0.0-5eM3B9rYLe0CvNxFcD0hxy" 'False) (C1 ('MetaCons "Item" 'PrefixI 'True) ((S1 ('MetaSel ('Just "intent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "rewritten_intent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "snippet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "question_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QId))))  | |