-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make subcommand for semantic clusters algorithm (#24)
Co-authored-by: Jonathan de Bruin <[email protected]>
- Loading branch information
Showing
8 changed files
with
195 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: test-suite | ||
on: [push, pull_request] | ||
jobs: | ||
lint-python: | ||
name: lint-python | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
- name: Install flake8 | ||
run: | | ||
pip install flake8 | ||
- name: Lint python with flake8 | ||
run: | | ||
flake8 . --max-complexity=10 --statistics | ||
test-master: | ||
name: test-asreview-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: asr-semantic-clustering | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: asreview/asreview | ||
path: asr-core | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
- name: Install packages | ||
run: | | ||
pip install pytest | ||
pip install --upgrade setuptools>=41.0.0 | ||
pip install ./asr-core[all] | ||
pip install ./asr-semantic-clustering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ __pycache__/ | |
# C extensions | ||
*.so | ||
|
||
# vscode | ||
.vscode/ | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
ignore = | ||
E402, # module level import not at top of file | ||
exclude = | ||
clustering.py, | ||
dim_reduct.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# based on https://github.com/pypa/sampleproject | ||
# MIT License | ||
|
||
# Always prefer setuptools over distutils | ||
from setuptools import setup, find_namespace_packages | ||
from os import path | ||
from io import open | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
# Get the long description from the README file | ||
with open(path.join(here, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='asreview-semantic-clustering', | ||
description='Semantic clustering tool for the ASReview project', | ||
version='0.1', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/asreview/semantic-clusters', | ||
author='Utrecht University', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
'Development Status :: 3 - Alpha', | ||
|
||
# Pick your license as you wish | ||
'License :: OSI Approved :: Apache Software License', | ||
|
||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
keywords='asreview extension semantic clustering clusters visualization', | ||
packages=find_namespace_packages(include=['asreviewcontrib.*']), | ||
install_requires=[ | ||
"numpy", | ||
"matplotlib", | ||
"asreview", | ||
"dash", | ||
"plotly", | ||
"sklearn", | ||
"transformers", | ||
"numpy", | ||
"seaborn", | ||
"torch", | ||
], | ||
|
||
extras_require={ | ||
}, | ||
|
||
entry_points={ | ||
"asreview.entry_points": [ | ||
"semantic_clustering = asreviewcontrib.semantic_clustering.main:SemClusEntryPoint", # noqa: E501 | ||
] | ||
}, | ||
|
||
project_urls={ | ||
'Bug Reports': | ||
"https://github.com/asreview/semantic-clusters/issues", | ||
'Source': | ||
"https://github.com/asreview/semantic-clusters", | ||
}, | ||
) |