Download pool/shard004/Python/0035918_outlines_steps.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/Python/0035918_outlines_steps.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard004/Python/0035918_outlines_steps.py
-
curl -L -o 0035918_outlines_steps.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/Python/0035918_outlines_steps.py
749 Bytes
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from lettuce import step | |
| def assert_in(condition, possibilities): | |
| assert condition in possibilities, \ | |
| u"%r 應該包含在: %r" % ( | |
| condition, possibilities | |
| ) | |
| def shu_ru(step, group): | |
| possibilities = [ | |
| u'什麽', | |
| u'其他', | |
| u'數據' | |
| ] | |
| assert_in(group, possibilities) | |
| def zhi_xing(step, group): | |
| possibilities = [ | |
| u'這個', | |
| u'這裏', | |
| u'動作' | |
| ] | |
| assert_in(group, possibilities) | |
| def de_dao(step, group): | |
| possibilities = [ | |
| u'功能', | |
| u'一樣', | |
| u'unicode輸出!' | |
| ] | |
| assert_in(group, possibilities) | |