You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is the bug report when I feed input as a string to extract entities
response = self.chain.predict_and_parse(text=text)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/langchain-0.0.235-py3.9.egg/langchain/chains/llm.py", line 281, in predict_and_parse
return self.prompt.output_parser.parse(result)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/kor-0.13.0-py3.9.egg/kor/extraction/parser.py", line 38, in parse
data = self.encoder.decode(text)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/kor-0.13.0-py3.9.egg/kor/encoders/csv_data.py", line 95, in decode
with StringIO(table_str) as buffer:
TypeError: initial_value must be str or None, not dict
The text was updated successfully, but these errors were encountered:
here is the bug report when I feed input as a string to extract entities
response = self.chain.predict_and_parse(text=text)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/langchain-0.0.235-py3.9.egg/langchain/chains/llm.py", line 281, in predict_and_parse
return self.prompt.output_parser.parse(result)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/kor-0.13.0-py3.9.egg/kor/extraction/parser.py", line 38, in parse
data = self.encoder.decode(text)
File "/Users/kevinliu/opt/anaconda3/envs/s3demo/lib/python3.9/site-packages/kor-0.13.0-py3.9.egg/kor/encoders/csv_data.py", line 95, in decode
with StringIO(table_str) as buffer:
TypeError: initial_value must be str or None, not dict
The text was updated successfully, but these errors were encountered: