Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 3e7b626

Browse files
Akshat Shrivastavafacebook-github-bot
authored andcommitted
Enabling RoBERTa Encoder
Differential Revision: D23602908 fbshipit-source-id: cdd4abb39010672e8432adc945067ab2b90dfd95
1 parent 3586c8b commit 3e7b626

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pytext/config/component.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ def create_component(component_type: ComponentType, config: Any, *args, **kwargs
203203
try:
204204
return cls.from_config(config, *args, **kwargs)
205205
except TypeError as e:
206-
raise Exception(f"Can't create component {cls}: {str(e)}")
206+
raise e
207+
# raise Exception(f"Can't create component {cls}: {str(e)}")
207208

208209

209210
def create_data_handler(data_handler_config, *args, **kwargs):

0 commit comments

Comments
 (0)