universal-data-tool
universal-data-tool copied to clipboard
[BUG] AttributeError: module 'universaldatatool' has no attribute 'nb'
Describe the bug Please see the following exception in Python:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-26-443af9ce9fd8> in <module>()
1 from universaldatatool import Dataset
2 ds = Dataset(udt_file)
----> 3 ds.show()
C:\Users\rsiddiqui\Anaconda3\envs\newenv\lib\site-packages\universaldatatool\dataset.py in show(self)
114
115 def show(self):
--> 116 udt.nb.open(self)
117
118 def display(self):
AttributeError: module 'universaldatatool' has no attribute 'nb'
To Reproduce Please see the following code to be run in Jupyter Notebook (Python):
import universaldatatool as udt
import json
udt_file = {
"name": "Sample Dataset",
"interface": {
"type": "data_entry",
"description": "Dialog Content",
"surveyjs": {
"questions": [
{
"type": "text",
"name": "transcription",
"title": "Manual Transcription of Dialog"
},
{
"name": "knowledge_base",
"type": "multiple-dropdown",
"title": "Knowledge Bases",
"choices": [
"A",
"B",
"C"
]
},
{
"name": "intents",
"type": "multiple-dropdown",
"title": "Intents",
"choices": [
"A",
"B",
"C"
]
},
{
"name": "dialog_acts",
"type": "multiple-dropdown",
"title": "Dialog Actions",
"choices": [
"A",
"B",
"C"
]
},
{
"name": "verbiage_sentiment",
"type": "multiple-dropdown",
"title": "Verbiage and Sentiment",
"choices": [
"A",
"B",
"C"
]
},
{
"name": "flows",
"type": "multiple-dropdown",
"title": "Flows",
"choices": [
"A",
"B",
"C"
]
}
]
}
},
"samples": [
{
"_id": "sslt34yfi",
"markdown": "Hello My name is Ramsha and I work here.",
}
]
}
json_string = json.dumps(udt_file, sort_keys=True)
from universaldatatool import Dataset
ds = Dataset(udt_file)
ds.show()
Expected behavior Its supposed to render the page as mentioned in UDT Docs, but is not doing so.
Desktop (please complete the following information): Windows Python 3.7 UniversalDataTool Version 0.0.4