Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract chemprot requirements from main setup.cfg (PyPI disallows direct dependency links) #168

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/chemprot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

2. Unzip the folder and each of the contents in the folder. Make sure that each folder starts with `chemprot_`. For example, train data folder should have a name of `chemprot_training`.

3. Run ```pip install scispacy https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_sm-0.5.1.tar.gz``` to get dependencies for the preprocessing tokenization and sentence splitting.
3. Run ```pip install -r chemprot_requirements.txt``` to get dependencies for the preprocessing tokenization and sentence splitting.

4. Preprocess the data with ```python -m cnlpt.data.transform_prot data/ChemProt_Corpus/ data/scispacy_chemprot/ chemprot```. Note, this only gives us {train,dev}.tsv in `data/scispacy_chemprot` since there are no gold labels for the test data.

Expand Down
3 changes: 3 additions & 0 deletions examples/chemprot/chemprot_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
en-core-sci-sm @ https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_sm-0.5.1.tar.gz
scispacy==0.5.1
spacy~=3.4.0
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ install_requires =
torch~=1.5
transformers~=4.15
uvicorn[standard]~=0.16.0
en-core-sci-sm @ https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_sm-0.5.1.tar.gz ; platform_machine!='arm64' and platform_machine!='aarch64' and sys_platform=='linux'
scispacy==0.5.1; platform_machine!='arm64' and platform_machine!='aarch64' and sys_platform=='linux'
spacy~=3.4.0; platform_machine!='arm64' and platform_machine!='aarch64' and sys_platform=='linux'

[options.entry_points]
console_scripts =
Expand Down