Skip to content
Open

New #19

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
5035caa
Update index.rst
ayushbits Jun 7, 2021
d5db4fa
Update index.rst
ayushbits Jun 7, 2021
895aeeb
added readthedocs yml and req.txt
ayushbits Jun 7, 2021
52c5c15
added readthedocs yml and req.txt
ayushbits Jun 7, 2021
a74b23b
remove docs/build folder
ayushbits Jun 7, 2021
baaec7d
remove docs/build folder
ayushbits Jun 7, 2021
0bcf091
remove docs/build folder
ayushbits Jun 7, 2021
bf33d0c
changed for readthedocs
ayushbits Jun 7, 2021
d966c41
changed for readthedocs
ayushbits Jun 7, 2021
82f9f8e
changed for readthedocs
ayushbits Jun 7, 2021
90f436c
changed for readthedocs
ayushbits Jun 7, 2021
63d62ff
changed for readthedocs
ayushbits Jun 7, 2021
025df84
changed for readthedocs
ayushbits Jun 7, 2021
009fc13
changed for readthedocs
ayushbits Jun 7, 2021
fa9f975
changed for readthedocs
ayushbits Jun 7, 2021
3dab358
resolved merge conflict.
gsaiabhishek Jun 8, 2021
f7369d6
added apricot in conf.py. Now subset_selection is visible in document…
gsaiabhishek Jun 8, 2021
5c7676b
edited notebooks of cage, JL
gsaiabhishek Jun 12, 2021
18c6336
minor changes to notebooks of cage,jl
gsaiabhishek Jun 12, 2021
4468b72
Merge branch 'main' of https://github.com/decile-team/spear into main
Dornavineeth Jun 13, 2021
1c6e52a
changed multi-label to multi-class
ayushbits Jun 13, 2021
fdd3a02
Update index.rst
prpankajsingh Jun 13, 2021
426ad59
Update requirements.txt
ayushbits Jun 13, 2021
15b929e
apricot name update
ayushbits Jun 13, 2021
0e09b86
separated jl, cage notebooks. added jl usecase in subsetselection
gsaiabhishek Jun 13, 2021
ebc792e
changed labels to class
gsaiabhishek Jun 13, 2021
4d6988e
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jun 13, 2021
43d8832
Added TREC notebook
ayushbits Jun 13, 2021
ddc2b3d
Merge branch 'main' of https://github.com/decile-team/spear into main
ayushbits Jun 13, 2021
9ab20ce
Added TREC notebook
ayushbits Jun 13, 2021
9be0b1c
Added TREC data
ayushbits Jun 13, 2021
230d6a4
trec notebook
ayushbits Jun 13, 2021
7e22794
minor bool array to int array change
harshading Jun 11, 2021
c2513cf
added cuda
gsaiabhishek Jun 13, 2021
df5a757
added a missing .cpu()
gsaiabhishek Jun 13, 2021
e753db8
changed jl, cage notebooks
gsaiabhishek Jun 13, 2021
8fdab06
added device(cuda) in documentation
gsaiabhishek Jun 13, 2021
9cb7aec
added trec notebook
ayushbits Jun 13, 2021
36c4a84
added tqdm in cage, jl core.py
gsaiabhishek Jun 13, 2021
c607b8c
Update README.md
ayushbits Jun 14, 2021
0952e68
Update README.md
ayushbits Jun 14, 2021
2be80de
Update README.md
ayushbits Jun 14, 2021
fbd10c8
Update README.md
ayushbits Jun 14, 2021
54a2bf9
Update README.md
ayushbits Jun 14, 2021
8dc3c9b
Update README.md
ayushbits Jun 14, 2021
63b484c
Update README.md
ayushbits Jun 14, 2021
e4c0ea9
Create LICENSE.txt
ayushbits Jun 14, 2021
b54aa08
Adding Implyloss
ParthLa Jun 14, 2021
4ada32e
Update README.md
ayushbits Jun 14, 2021
13dd39b
Update README.md
rishabhk108 Jun 14, 2021
1ba5768
Update README.md
ayushbits Jun 15, 2021
bd698e9
djf
ParthLa Jun 15, 2021
74e656b
now loss_func_mask in JL can only be list, not np
gsaiabhishek Jun 15, 2021
45ec625
Update README.md
ayushbits Jun 18, 2021
534323b
Update README.md
ayushbits Jun 18, 2021
3b6a82f
changed requirements. everyone do the same.
gsaiabhishek Jun 19, 2021
c726447
resolved bug in analysis and made suggested changes
Dornavineeth Jun 19, 2021
9450771
merged code
Dornavineeth Jun 19, 2021
316c3c6
changed abstain to ABSTAIN
gsaiabhishek Jun 19, 2021
03476f3
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jun 19, 2021
ff8ad8d
Update README.md
gsaiabhishek Jun 19, 2021
a4d47ed
Update README.md
gsaiabhishek Jun 19, 2021
d3fe7b5
changed path for colab in con_scorer
Dornavineeth Jun 19, 2021
399387d
edited docs for cage, jl
gsaiabhishek Jun 19, 2021
b104ec4
updated requirement.txt for labeling
Dornavineeth Jun 19, 2021
ef89be7
removed readme of labeling
Dornavineeth Jun 19, 2021
0c63ea8
minor change in cage, jl notebooks
gsaiabhishek Jun 20, 2021
fe3a710
Implyloss running on jupyter
ParthLa Jun 20, 2021
62deb30
Merge branch 'main' of https://github.com/decile-team/spear into main
ParthLa Jun 20, 2021
faa0c1e
Add files via upload
rishabhk108 Jun 24, 2021
6a6e55d
Update README.md
rishabhk108 Jun 24, 2021
9822f9c
Update README.md
rishabhk108 Jun 24, 2021
b32fb35
HLS
ParthLa Jun 25, 2021
582752d
Merge branch 'main' of https://github.com/decile-team/spear into main
ParthLa Jun 25, 2021
5d6eb91
Update README.md
gsaiabhishek Jun 26, 2021
ac631a6
Doc Done
ParthLa Jun 26, 2021
b78c056
Merge branch 'main' of https://github.com/decile-team/spear into main
ParthLa Jun 26, 2021
85c748a
added snorkel citation in docs
gsaiabhishek Jun 26, 2021
0363582
checks for user inputs added
harshading Jun 23, 2021
f36b470
minor change in cage, jl notebook
gsaiabhishek Jun 26, 2021
aa92c48
removed pycache folders
gsaiabhishek Jun 26, 2021
fbaa0a5
change in docs
gsaiabhishek Jun 26, 2021
eafdd63
change in docs
gsaiabhishek Jun 26, 2021
3d7870a
made minor changes in notebooks
Dornavineeth Jun 26, 2021
622f5ca
Merge branch 'main' of https://github.com/decile-team/spear into main
Dornavineeth Jun 26, 2021
4aa970d
added pipeline image
gsaiabhishek Jun 26, 2021
90cb980
Update README.md
gsaiabhishek Jun 26, 2021
f3f9900
Update README.md
gsaiabhishek Jun 26, 2021
c8c9be5
added pipeline image
gsaiabhishek Jun 26, 2021
013a65b
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jun 26, 2021
58d1fac
changed spear name in dosc
gsaiabhishek Jun 26, 2021
6ca5aba
change in jl core
gsaiabhishek Jun 26, 2021
f9ecf97
edited tqdm in jl
gsaiabhishek Jun 26, 2021
9aaa1be
tqdm change in jl
gsaiabhishek Jun 26, 2021
57d51ed
trin to make tqdm work in colab
gsaiabhishek Jun 26, 2021
ae4e2d4
last try
gsaiabhishek Jun 26, 2021
f3b0975
finally!
gsaiabhishek Jun 26, 2021
59718cc
change in subset selection
gsaiabhishek Jun 26, 2021
ea3ffe4
change to jl, cage notebooks
gsaiabhishek Jun 26, 2021
0a75ec4
HLS
ParthLa Jun 27, 2021
1a8325d
changed pipeline image
gsaiabhishek Jun 27, 2021
055c1ad
added background to spear pipeline image
gsaiabhishek Jun 27, 2021
b1d0b70
padding in pipeline image
gsaiabhishek Jun 27, 2021
e73323f
Update README.md
gsaiabhishek Jun 27, 2021
bdcb9a1
Update README.md
gsaiabhishek Jun 27, 2021
2f30b5e
Update README.md
gsaiabhishek Jun 27, 2021
7447129
changed .gitignore
gsaiabhishek Jun 27, 2021
f2c33c8
change in gitignore
gsaiabhishek Jun 27, 2021
53519d4
change in gitignore
gsaiabhishek Jun 27, 2021
58c08c4
change in gitignore
gsaiabhishek Jun 27, 2021
0e888f5
removed pycache folders
gsaiabhishek Jun 27, 2021
3bcd78d
removed build folder
gsaiabhishek Jun 27, 2021
b3bd0bf
change in gitignore
gsaiabhishek Jun 27, 2021
ee42c31
changed spear logo
gsaiabhishek Jun 27, 2021
a7d6f2c
updated lines of code
ayushbits Jun 28, 2021
911291f
Added spear logo
ayushbits Jun 28, 2021
b1322dc
Added logo
ayushbits Jun 28, 2021
d2fcb45
Update README.md
ayushbits Jun 28, 2021
332942e
Update README.md
ayushbits Jun 28, 2021
8617626
Update README.md
ayushbits Jun 28, 2021
4fff49f
Update README.md
gsaiabhishek Jul 1, 2021
304a438
Update README.md
gsaiabhishek Jul 1, 2021
f902b28
Update README.md
gsaiabhishek Jul 1, 2021
faa7982
Update README.md
gsaiabhishek Jul 1, 2021
a25a19e
Update README.md
gsaiabhishek Jul 1, 2021
a138224
Update README.md
gsaiabhishek Jul 1, 2021
af53d06
Update README.md
gsaiabhishek Jul 1, 2021
227b22c
added border to spea logo
gsaiabhishek Jul 1, 2021
de095e9
Update README.md
gsaiabhishek Jul 1, 2021
79b02b7
Update README.md
gsaiabhishek Jul 3, 2021
4cee3bf
minor change to cage, jl notebooks
gsaiabhishek Jul 3, 2021
5c41bc5
added sub selec using submodlib, but commented for now
gsaiabhishek Jul 3, 2021
60402f8
using submodlib for subset selection
gsaiabhishek Jul 3, 2021
e498c4c
minor change in docs
gsaiabhishek Jul 3, 2021
7ca9dc9
removed apricot citation in docs
gsaiabhishek Jul 3, 2021
7176c85
deleted L2R folder
gsaiabhishek Jul 3, 2021
2ba4424
minor change in docs
gsaiabhishek Jul 3, 2021
2a166b4
change in docs
gsaiabhishek Jul 3, 2021
aa8b483
change in docs
gsaiabhishek Jul 3, 2021
32f318b
Update README.md
gsaiabhishek Jul 3, 2021
aaa2c30
Update README.md
gsaiabhishek Jul 3, 2021
f780622
added colab links in notebooks
gsaiabhishek Jul 3, 2021
f781a9d
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jul 3, 2021
34f22b5
Update README.md
gsaiabhishek Jul 3, 2021
49a771e
Update README.md
gsaiabhishek Jul 3, 2021
419a1d4
Update README.md
gsaiabhishek Jul 3, 2021
f84289e
Update README.md
gsaiabhishek Jul 4, 2021
cb2db0f
Update README.md
gsaiabhishek Jul 4, 2021
aa0fd29
Update README.md
gsaiabhishek Jul 4, 2021
73278cc
Hls work
ParthLa Jul 8, 2021
aeb341a
Hls work
ParthLa Jul 8, 2021
c2caa63
Hls work
ParthLa Jul 8, 2021
2941550
Done
ParthLa Jul 8, 2021
c739689
change in cage, jl notebooks
gsaiabhishek Jul 10, 2021
5b56ee1
change in cage notebook
gsaiabhishek Jul 17, 2021
839a375
change in cage notebook
gsaiabhishek Jul 17, 2021
2497110
Update README.md
gsaiabhishek Jul 17, 2021
bb34dab
Update README.md
gsaiabhishek Jul 17, 2021
2bff567
changed requirements
gsaiabhishek Jul 17, 2021
6e9f5d2
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jul 17, 2021
0f7b304
Update README.md
ayushbits Jul 18, 2021
ac75634
changed pipeline
gsaiabhishek Jul 18, 2021
e45970e
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jul 18, 2021
44f9426
Minor changes in HLS Notebook
ParthLa Jul 18, 2021
092c13c
changed pipeline
gsaiabhishek Jul 18, 2021
3a06e97
Merge branch 'main' of https://github.com/decile-team/spear into main
gsaiabhishek Jul 18, 2021
ec248a0
Update README.md
gsaiabhishek Jul 28, 2021
39002d6
Update README.md
gsaiabhishek Jul 30, 2021
4ad9304
Update README.md
gsaiabhishek Jul 30, 2021
f911c6a
Update README.md
gsaiabhishek Aug 13, 2021
9291050
Update README.md
gsaiabhishek Aug 15, 2021
58c2ec3
Update README.md
gsaiabhishek Aug 15, 2021
a8d5468
Update README.md
gsaiabhishek Aug 15, 2021
461b250
reqs changes
gsaiabhishek Nov 2, 2021
e2d5e91
adding setup files
gsaiabhishek Nov 2, 2021
36dfd16
Update requirements.txt
ParthLa Nov 2, 2021
b7752ad
updated setup.py
ayushbits Nov 3, 2021
1b3c2b8
Update README.md
ayushbits Nov 3, 2021
ce027e4
Update README.md
ayushbits Nov 3, 2021
67d1a57
Update README.md
gsaiabhishek Nov 3, 2021
cf53a8e
Added live pypi
ayushbits Nov 8, 2021
6415370
Update README.md
Dornavineeth Jan 23, 2022
705dd44
Update README.md
Dornavineeth Jan 23, 2022
dcd2685
cleaned repo
ayushbits Feb 1, 2022
88cccf0
Update README.md
ayushbits Feb 1, 2022
e6de7ad
Update README.md
ayushbits Mar 7, 2022
927c1dc
Create __init__.py
ayushbits Apr 4, 2022
540b2d3
modified setup.py
ayushbits Apr 4, 2022
faee10c
Update README.md
ayushbits Apr 5, 2022
f92a84f
Update README.md
ayushbits Apr 5, 2022
eae0929
Update README.md
ayushbits Apr 5, 2022
3a790df
Resolving when batch has only single instance
ayushbits Apr 13, 2022
0265fdc
Added Youtube tutorial
Apr 25, 2022
5691e27
Update README.md
ayushbits Jun 16, 2022
6ebd23a
Update README.md
ayushbits Sep 12, 2022
0db2771
Updated condition for Gold Label check and passing parameter name pas…
kasuba-badri-vishal Dec 11, 2022
6948ece
Merge pull request #18 from kasuba-badri-vishal/main
ayushbits Dec 18, 2022
1f4ee5f
modified notebook and readme
ayushbits Apr 2, 2023
3534991
Added all the changes to branch
Aziz-Shameem Apr 25, 2023
19b397d
removed example run files
Aziz-Shameem Apr 25, 2023
7f15d5e
Removed all data files
Aziz-Shameem Apr 25, 2023
9b15147
removed extraneous file
Aziz-Shameem Apr 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
./data/
__pycache__/
*.py[cod]
data/
docs/build/

*.so

bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

pip-log.txt
pip-delete-this-directory.txt
16 changes: 16 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.6
install:
- requirements: docs/requirements.txt
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2021- decile.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
120 changes: 119 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,119 @@
# spear

<!-- [![](https://tokei.rs/b1/github/decile-team/spear?category=code)](https://github.com/decile-team/spear) -->
[![Lines of code](https://img.shields.io/tokei/lines/github/decile-team/spear)]()
![visitors](https://visitor-badge.glitch.me/badge?page_id=decile-team/spear)
![PyPI](https://img.shields.io/pypi/v/spear)
[![docs](https://readthedocs.org/projects/spear-decile/badge)](https://spear-decile.readthedocs.io/)
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/decile-team/spear/blob/main/LICENSE.txt)
[![website](https://img.shields.io/badge/website-online-green)](https://decile.org/)

<!-- ![GitHub repo size](https://img.shields.io/github/repo-size/decile-team/spear) -->

<p align="center">
<br>
<img src="https://github.com/decile-team/spear/blob/main/spear_logo.png" width="540" height="150"/>
</br>
</p>

## Semi-Supervised Data Programming for Data Efficient Machine Learning
SPEAR is a library for data programming with semi-supervision. The package implements several recent data programming approaches including facility to programmatically label and build training data.

### Pipeline
* Design Labeling functions(LFs)
* generate pickle file containing labels by passing raw data to LFs
* Use one of the Label Aggregators(LA) to get final labels

<p align="center">
<br>
<img src="https://github.com/decile-team/spear/blob/main/spear_pipeline.svg" width="1000" height="300" />
</br>
</p>


### SPEAR provides functionality such as
* development of LFs/rules/heuristics for quick labeling
* compare against several data programming approaches
* compare against semi-supervised data programming approaches
* use subset selection to make best use of the annotation efforts
* facility to store and save data in [pickle file](https://spear-decile.readthedocs.io/en/latest/index.html#spear.utils.data_editor.get_data)

#### Labelling Functions (LFs)
* discrete LFs - Users can define LFs that return discrete labels
* continuous LFs - return continuous scores/confidence to the labels assigned

#### Approaches Implemented
You can read [this paper](https://arxiv.org/pdf/2008.09887.pdf) to know about below approaches
* Only-L
* Learning to Reweight
* Posterior Regularization
* Imply Loss
* CAGE
* Joint Learning

Data folder for SMS & TREC can be found [here](https://drive.google.com/file/d/1CJZ73nNa7Ho0BOSDgGx9CRvXoepVSpet/view?usp=sharing). This folder needs to be placed in the same directory as notebooks folder is in, to run the notebooks or examples.

Direct download of the zip file can be done via wget using `gdown` library .
```bash
pip install gdown
gdown 1CJZ73nNa7Ho0BOSDgGx9CRvXoepVSpet
```

## Installation
* Install Submodlib library
`pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ submodlib`
#### Method 1
To install latest version of SPEAR package using PyPI:
```python
pip install decile-spear
```
#### Method 2
SPEAR requires Python 3.6 or later. First install [submodlib](https://github.com/decile-team/submodlib#setup). Then install SPEAR:

```bash
git clone https://github.com/decile-team/spear.git
cd spear
pip install -r requirements/requirements.txt
```

## Citation
```bibtex
@misc{abhishek2021spear,
title={SPEAR : Semi-supervised Data Programming in Python},
author={Guttu Sai Abhishek and Harshad Ingole and Parth Laturia and Vineeth Dorna and Ayush Maheshwari and Ganesh Ramakrishnan and Rishabh Iyer},
year={2021},
eprint={2108.00373},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
```

### Quick Links
* [SPEAR tutorials](https://github.com/decile-team/spear/tree/main/notebooks)
* [SPEAR documentation](https://spear-decile.readthedocs.io/)
* [Demonstration of Cage and Joint Learning using SPEAR](https://youtu.be/qdukvO3B8YU)
* [Demonstration of Imply Loss, Learn2Reweight using SPEAR](https://youtu.be/SN9YYK4FlU0)
* SMS SPAM: [CAGE colab](https://colab.research.google.com/drive/1vec-Q-xO9wQtM3p_CZ7237gCq0xIR9b9?usp=sharing), [JL colab](https://colab.research.google.com/drive/1HqkqQ8ytWjP9on3du-vVB07IQvo8Li3W?usp=sharing)
* [DECILE website](https://decile.org)
* [SubModLib - Summarize massive datasets using submodular optimization](https://github.com/decile-team/submodlib)
* [DISTIL- Deep Diversified Interactive Learning](https://github.com/decile-team/distil)
* [CORDS- COResets and Data Subset Selection](https://github.com/decile-team/cords)



### Acknowledgment
SPEAR takes inspiration, builds upon, and uses pieces of code from several open source codebases. These include [Snorkel](https://github.com/snorkel-team/snorkel), [Snuba](https://github.com/HazyResearch/reef) & [Imply Loss](https://github.com/awasthiabhijeet/Learning-From-Rules). Also, SPEAR uses [SUBMODLIB](https://github.com/decile-team/submodlib) for subset selection, which is provided by [DECILE](https://decile.org/) too.

### Team
SPEAR is created and maintained by [Ayush](https://www.cse.iitb.ac.in/~ayusham), [Abhishek](https://www.linkedin.com/in/guttu-sai-abhishek/), [Vineeth](https://www.cse.iitb.ac.in/~vineethdorna/), [Harshad](https://www.cse.iitb.ac.in/~harshadingole/), [Parth](https://www.cse.iitb.ac.in/~parthlaturia/), [Pankaj](https://www.linkedin.com/in/pankaj-singh-b000894a/), [Rishabh Iyer](https://www.rishiyer.com), and [Ganesh Ramakrishnan](https://www.cse.iitb.ac.in/~ganesh/). We look forward to have SPEAR more community driven. Please use it and contribute to it for your research, and feel free to use it for your commercial projects. We will add the major contributors here.


## Publications
[1] Abhishek et al. [SPEAR : Semi-supervised Data Programming in Python](https://arxiv.org/abs/2108.00373), Demonstration Paper.

[2] Maheshwari et al. [Learning to Robustly Aggregate Labeling Functions for Semi-supervised Data Programming](https://arxiv.org/abs/2109.11410), In Findings of ACL (Long Paper) 2022.

[3] Maheshwari, Ayush, et al. [Data Programming using Semi-Supervision and Subset Selection](https://arxiv.org/abs/2008.09887), In Findings of ACL (Long Paper) 2021.

[4] Chatterjee, Oishik, Ganesh Ramakrishnan, and Sunita Sarawagi. [Data Programming using Continuous and Quality-Guided Labeling Functions](https://arxiv.org/abs/1911.09860), In AAAI 2020.

[5] Sahay, Atul, et al. [Rule augmented unsupervised constituency parsing](https://arxiv.org/abs/2105.10193), In Findings of ACL (Short Paper) 2021.
6 changes: 3 additions & 3 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ if "%SPHINXBUILD%" == "" (
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
Expand All @@ -21,10 +19,12 @@ if errorlevel 9009 (
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
echo.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

Expand Down
9 changes: 9 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sphinx-rtd-theme==0.5.1
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-bibtex==2.2.0
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
16 changes: 6 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
import sys
sys.path.insert(0, os.path.abspath('../..'))


master_doc = 'index'
autodoc_mock_imports = ["torch", "sklearn", "utils_jl", "models", "tensorflow", "snorkel", "my_checkmate", "my_checkpoints","my_config", "my_data_feeder_utils", "my_data_types", "my_gen_cross_entropy_utils", "my_pr_utils", "my_test", "my_train", "my_utils"]
# -- Project information -----------------------------------------------------

project = 'SPEAR(DECILE)'
copyright = '2021, Ganesh_Ramakrishnan, Ayush_Maheshwari, Guttu_Sai_Abhishek, Harshad_Ingole, Parth_Laturia, Vineeth_Dorna'
author = 'Ganesh_Ramakrishnan, Ayush_Maheshwari, Guttu_Sai_Abhishek, Harshad_Ingole, Parth_Laturia, Vineeth_Dorna'
copyright = '2021 DECILE'
author = 'Ayush_Maheshwari, Guttu_Sai_Abhishek, Harshad_Ingole, Parth_Laturia, Vineeth_Dorna'

# The full version, including alpha/beta/rc tags
release = '0.0.1'
Expand All @@ -42,9 +42,7 @@
#'numpydoc'
'sphinxcontrib.napoleon',
'sphinxcontrib.bibtex'
# 'rinoh.frontend.sphinx'
]

bibtex_bibfiles = ['refs.bib']

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -61,13 +59,11 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme' #'alabaster'
html_theme = 'sphinx_rtd_theme'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
html_static_path = []
html_static_path = ['_static']

#below line makes functions to print in order they were defined in files. added by abhishek
autodoc_member_order = 'bysource'
autodoc_member_order = 'bysource'
Loading