Rasa NLU版本:0.14.0a1
操作系统**(Windows,OSX等):Ubuntu
模型配置文件的内容:我使用json格式进行配置,因为我无法编写S3环境变量。
{
"pipeline": "spacy_sklearn",
"storage": "aws",
"AWS_SECRET_ACCESS_KEY": "secret_access_key",
"AWS_ACCESS_KEY_ID": "access_key",
"AWS_DEFAULT_REGION": "us-west-1",
"BUCKET_NAME": "mybucket",
"AWS_ENDPOINT_URL": "apigateway.us-west-1.amazonaws.com"
}
这是我的yml
配置文件。不知道如何创建yml
格式的AWS环境变量。
pipeline:
- name: "nlp_spacy"
- name: "tokenizer_spacy"
- name: "ner_duckling"
dimensions: ["time", "phone-number", "url", "email"]
- name: "ner_crf"
- name: "ner_synonyms"
- name: "intent_featurizer_count_vectors"
- name: "intent_classifier_tensorflow_embedding"
intent_tokenization_flag: true
intent_split_symbol: ","
我正在尝试使用此命令将模型存储到AWS云中
python -m rasa_nlu.server -c config/sample_aws_config.json --storage aws --path /models/
我正在从邮递员那里训练我的模型。
2019-01-10 17:23:59 ERROR rasa_nlu.data_router - Failed to list projects. Make sure you have correctly configured your cloudstorage settings.
Traceback (most recent call last):
File "/rasa_nlu/data_router.py", line 205, in _list_projects_in_cloud
p = get_persistor(self.remote_storage)
File "/rasa_nlu/persistor.py", line 28, in get_persistor
os.environ.get("apigateway.us-west-1.amazonaws.com"))
File "/rasa_nlu/persistor.py", line 147, in __init__
self._ensure_bucket_exists(bucket_name)
File "/rasa_nlu/persistor.py", line 181, in _ensure_bucket_exists
CreateBucketConfiguration=bucket_config)
File "/lib/python3.6/site-packages/boto3/resources/factory.py", line 520, in do_action
response = action(self, *args, **kwargs)
File "/lib/python3.6/site-packages/boto3/resources/action.py", line 83, in __call__
response = getattr(parent.meta.client, operation_name)(**params)
File "/lib/python3.6/site-packages/botocore/client.py", line 324, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/lib/python3.6/site-packages/botocore/client.py", line 596, in _make_api_call
api_params, operation_model, context=request_context)
File "/lib/python3.6/site-packages/botocore/client.py", line 629, in _convert_to_request_dict
api_params, operation_model, context)
File "/lib/python3.6/site-packages/botocore/client.py", line 658, in _emit_api_params
params=api_params, model=operation_model, context=context)
File "/lib/python3.6/site-packages/botocore/hooks.py", line 227, in emit
return self._emit(event_name, kwargs)
File "/lib/python3.6/site-packages/botocore/hooks.py", line 210, in _emit
response = handler(**kwargs)
File "/lib/python3.6/site-packages/botocore/handlers.py", line 222, in validate_bucket_name
if VALID_BUCKET.search(bucket) is None:
TypeError: expected string or bytes-like object
2019-01-10 17:24:00 WARNING rasa_nlu.project - Failed to list models of project tester. expected string or bytes-like object