Skip to content

Commit

Permalink
Add initial config for mindmeld based skills. (#44)
Browse files Browse the repository at this point in the history
Adds a mm_config to our static files which disables the dependencies on duckling and Elasticsearch for
projects created via the cli.
  • Loading branch information
snow0x2d0 committed Oct 25, 2021
1 parent 3503b17 commit 91c3d83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webex_skills/cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def create_mm_project(skill_name, output_dir, secret) -> None:
# Copy sample domains into domain folder
shutil.copytree(static_path / 'default_domains', domains_dir)

# Copy app config to avoid requirements
mm_config_path = static_path / 'mm_config.py'
shutil.copy(mm_config_path, app_dir / 'config.py')

# Build models
typer.secho('Initializing natural language processor', fg=typer.colors.GREEN)
nlp = create_nlp(str(app_dir))
Expand Down
2 changes: 2 additions & 0 deletions webex_skills/static/mm_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NLP_CONFIG = {'system_entity_recognizer': {}}
ENTITY_RESOLVER_CONFIG = {'model_type': 'exact_match'}

0 comments on commit 91c3d83

Please sign in to comment.