|
1 | 1 | # Classification with Born's Rule |
2 | 2 |
|
3 | | -<img src="https://upload.wikimedia.org/wikipedia/en/thumb/0/08/Logo_for_Conference_on_Neural_Information_Processing_Systems.svg/1200px-Logo_for_Conference_on_Neural_Information_Processing_Systems.svg.png" align="right" height="128"/>This repository contains the code for the paper [Text Classification with Born's Rule](https://proceedings.neurips.cc/paper_files/paper/2022/hash/c88d0c9bea6230b518ce71268c8e49e0-Abstract-Conference.html). The classifier is implemented in python and available on [PyPI](https://pypi.org/project/bornrule/). The documentation is available [here](https://bornrule.eguidotti.com). |
| 3 | +<img src="https://upload.wikimedia.org/wikipedia/en/thumb/0/08/Logo_for_Conference_on_Neural_Information_Processing_Systems.svg/1200px-Logo_for_Conference_on_Neural_Information_Processing_Systems.svg.png" align="right" height="128"/>This repository contains the code for the papers [Text Classification with Born's Rule](https://proceedings.neurips.cc/paper_files/paper/2022/hash/c88d0c9bea6230b518ce71268c8e49e0-Abstract-Conference.html) and In-Database Text Classification with BornSQL (EDBT 2026, forthcoming). The code to reproduce the papers is available in the folders `nips` and `edbt`, respectively. The classifier is implemented in python and available on [PyPI](https://pypi.org/project/bornrule/). The complete documentation is available [here](https://bornrule.eguidotti.com). |
4 | 4 |
|
5 | 5 | ## Installation |
6 | 6 |
|
@@ -41,55 +41,34 @@ from bornrule.sql import BornClassifierSQL |
41 | 41 | - Equivalent to the class `BornClassifier` but for in-database classification |
42 | 42 | - Supports inputs represented as json `{feature: value, ...}` |
43 | 43 |
|
44 | | -## Paper replication |
45 | | - |
46 | | -All the results in the paper are obtained using Python 3.9 on a Google Cloud Virtual Machine equipped with |
47 | | -CentOS 7, 12 vCPU Intel Cascade Lake 85 GB RAM, 1 GPU NVIDIA Tesla A100, and CUDA 11.5. |
48 | | - |
49 | | -Install this package: |
50 | | - |
51 | | -```commandline |
52 | | -pip install bornrule==0.1.0 |
53 | | -``` |
54 | | - |
55 | | -Install additional dependencies to replicate the paper: |
56 | | - |
57 | | -```commandline |
58 | | -pip install bs4==0.0.1 nltk==3.7 matplotlib==3.5.1 |
59 | | -``` |
60 | | - |
61 | | -Install [`pytorch`](https://pytorch.org) version `1.11.0` with GPU support. For CUDA 11.5 the command is: |
62 | | -```commandline |
63 | | -pip install torch==1.11.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html |
64 | | -``` |
| 44 | +## Cite as |
65 | 45 |
|
66 | | -Install [`cupy`](https://docs.cupy.dev/en/stable/install.html) version `10.4.0`. For CUDA 11.5 the command is: |
67 | | -```commandline |
68 | | -pip install cupy-cuda115==10.4.0 |
69 | | -``` |
| 46 | +>Emanuele Guidotti and Alfio Ferrara. Text Classification with Born's Rule. In *Advances in Neural Information Processing Systems*, volume 35, pages 30990–31001, 2022. |
70 | 47 |
|
71 | | -Run the script `nips.py`: |
| 48 | +A BibTeX entry for LaTeX users is: |
72 | 49 |
|
73 | | -```commandline |
74 | | -python -u nips.py > nips.log & |
| 50 | +```bibtex |
| 51 | +@inproceedings{guidotti2022born, |
| 52 | + title = {Text Classification with Born's Rule}, |
| 53 | + author = {Guidotti, Emanuele and Ferrara, Alfio}, |
| 54 | + booktitle = {Advances in Neural Information Processing Systems}, |
| 55 | + pages = {30990--31001}, |
| 56 | + volume = {35}, |
| 57 | + year = {2022} |
| 58 | +} |
75 | 59 | ``` |
76 | 60 |
|
77 | | -The script generates a folder named `results` with all the results in the paper. Additional information are saved to the log file `nips.log` |
78 | | - |
79 | | -## Cite as |
80 | | - |
81 | | ->Emanuele Guidotti and Alfio Ferrara. Text Classification with Born's Rule. In *Advances in Neural Information Processing Systems*, volume 35, pages 30990–31001, 2022. |
| 61 | +>Emanuele Guidotti, Darya Shlyk, Stefano Montanelli, and Alfio Ferrara. In-Database Text Classification with BornSQL. *Proceedings of the 29th international conference on extending database technology*, forthcoming, 2026. |
82 | 62 |
|
83 | 63 | A BibTeX entry for LaTeX users is: |
84 | 64 |
|
85 | 65 | ```bibtex |
86 | | -@inproceedings{guidotti2022text, |
87 | | - title = {Text Classification with Born's Rule}, |
88 | | - author = {Guidotti, Emanuele and Ferrara, Alfio}, |
89 | | - booktitle = {Advances in Neural Information Processing Systems}, |
90 | | - pages = {30990--31001}, |
91 | | - volume = {35}, |
92 | | - year = {2022} |
| 66 | +@inproceedings{guidotti2026bornsql, |
| 67 | + author = {Emanuele Guidotti and Darya Shlyk and Stefano Montanelli and Alfio Ferrara}, |
| 68 | + title = {In-Database Text Classification with BornSQL}, |
| 69 | + booktitle = {Proceedings of the 29th International Conference on Extending Database Technology (EDBT)}, |
| 70 | + year = {2026}, |
| 71 | + note = {Forthcoming} |
93 | 72 | } |
94 | 73 | ``` |
95 | 74 |
|
0 commit comments