mirror of
https://github.com/facebook/duckling.git
synced 2024-12-24 04:31:41 +03:00
47 lines
1.1 KiB
Haskell
47 lines
1.1 KiB
Haskell
|
-- Copyright (c) 2016-present, Facebook, Inc.
|
||
|
-- All rights reserved.
|
||
|
--
|
||
|
-- This source code is licensed under the BSD-style license found in the
|
||
|
-- LICENSE file in the root directory of this source tree. An additional grant
|
||
|
-- of patent rights can be found in the PATENTS file in the same directory.
|
||
|
|
||
|
|
||
|
{-# LANGUAGE OverloadedStrings #-}
|
||
|
|
||
|
module Duckling.Distance.CS.Corpus
|
||
|
( corpus ) where
|
||
|
|
||
|
import Data.String
|
||
|
import Prelude
|
||
|
|
||
|
import Duckling.Distance.Types
|
||
|
import Duckling.Lang
|
||
|
import Duckling.Resolve
|
||
|
import Duckling.Testing.Types
|
||
|
|
||
|
corpus :: Corpus
|
||
|
corpus = (testContext {lang = CS}, allExamples)
|
||
|
|
||
|
allExamples :: [Example]
|
||
|
allExamples = concat
|
||
|
[ examples (DistanceValue Kilometre 3)
|
||
|
[ "3 kilometry"
|
||
|
, "3 km"
|
||
|
, "3km"
|
||
|
, "3k"
|
||
|
]
|
||
|
, examples (DistanceValue Mile 8)
|
||
|
[ "8 mil"
|
||
|
, "osm mil"
|
||
|
]
|
||
|
, examples (DistanceValue Metre 9)
|
||
|
[ "9m"
|
||
|
, "9 metr"
|
||
|
, "9 metry"
|
||
|
]
|
||
|
, examples (DistanceValue Centimetre 2)
|
||
|
[ "2cm"
|
||
|
, "2 centimetry"
|
||
|
]
|
||
|
]
|