Skip to content

Commit 227db45

Browse files
author
Johannes Hötter
committed
bugfix ordereddict
1 parent efa1b4e commit 227db45

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![kern-python](https://uploads-ssl.webflow.com/61e47fafb12bd56b40022a49/62766400bd3c57b579d289bf_kern-python%20Banner.png)
22
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)
3-
[![pypi 1.0.0](https://img.shields.io/badge/pypi-1.0.0-yellow.svg)](https://pypi.org/project/kern-sdk/1.0.0/)
3+
[![pypi 1.0.1](https://img.shields.io/badge/pypi-1.0.1-yellow.svg)](https://pypi.org/project/kern-sdk/1.0.1/)
44

55

66
This is the official Python SDK for [*refinery*](https://github.com/code-kern-ai/refinery), your **open-source** data-centric IDE for NLP.

kern/adapter/rasa.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import os
2+
from wasabi import msg
13
from typing import Any, List, Optional
24
import pandas as pd
35
import yaml
6+
from kern import Client
7+
from collections import OrderedDict
48

59
# https://stackoverflow.com/questions/8640959/how-can-i-control-what-scalar-form-pyyaml-uses-for-my-data
610
class literal(str):
@@ -20,12 +24,6 @@ def ordered_dict_presenter(dumper, data):
2024

2125
yaml.add_representer(OrderedDict, ordered_dict_presenter)
2226

23-
import os
24-
from collections import OrderedDict
25-
from wasabi import msg
26-
27-
from kern import Client
28-
2927
CONSTANT_OUTSIDE = "OUTSIDE"
3028
CONSTANT_LABEL_BEGIN = "B-"
3129
CONSTANT_LABEL_INTERMEDIATE = "I-"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="kern-sdk",
13-
version="1.0.0",
13+
version="1.0.1",
1414
author="jhoetter",
1515
author_email="johannes.hoetter@kern.ai",
1616
description="Official SDK for the Kern AI API",

0 commit comments

Comments
 (0)