Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

[BUG] ABSA sample notebook is referring to non-existent branch name to install pip #614

Open
dem108 opened this issue Feb 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@dem108
Copy link
Member

dem108 commented Feb 16, 2021

Description

https://github.com/microsoft/nlp-recipes/blob/master/examples/sentiment_analysis/absa/absa_azureml.ipynb
is referring to a branch for pip install, which does not exist. Specifically in the Create an Experiment section,

nlp_est = Estimator(source_directory='.',
                   script_params=script_params,
                   compute_target=cluster,
                   environment_variables = {'NLP_ARCHITECT_BE':'CPU'},
                   entry_script='train.py',
                   pip_packages=['git+https://github.com/NervanaSystems/nlp-architect.git@absa',
                                 'spacy==2.1.8']
)

it looks for git+https://github.com/NervanaSystems/nlp-architect.git@absa which does not exist. The git repo has a commit that merges this absa branch into master, so removing the branch name solves the issue. The updated code should be:

nlp_est = Estimator(source_directory='.',
                   script_params=script_params,
                   compute_target=cluster,
                   environment_variables = {'NLP_ARCHITECT_BE':'CPU'},
                   entry_script='train.py',
                   pip_packages=['git+https://github.com/NervanaSystems/nlp-architect.git',
                                 'spacy==2.1.8']
)

and with this updated one the container image build succeeds.

How do we replicate the bug?

Just follow the documentation and it fails without changing anything. According to Azure ML log, it fails at container image build stage, saying absa branch is not found.

Expected behavior (i.e. solution)

The correct git repo to install pip should succeed at container build stage.

Other Comments

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant