Skip to content

Commit b416e40

Browse files
xehusundy1994agshruti12amytangzheng
authored
Merge in the initial package version! (#268)
* add pyproject.toml * Update README.md with team-comm-tools rather than team-process-map * Update README.md to remove outdated requirement (#264) * delete junit * move preprocessing notebooks to tests * remove unnecessary deps * update requirements * more slimming of reqs * remove packaging related deps * get rid of requests and xgboost deps * addressing #267 * edit src paths * test with python 3.7 * test python 3.7 * test 3.8 * test 3.8 pt. 2 * test 3.9 * test 3.10 * restore to 3.11; play with docs * Update README.md with new path names. * standardize package structure and solve path issues * update requirement.txt path in workflow * update workflow file * updating test workflow * update test workflow * update test workflow * update test workflow * update test workflow * update imports in example * fix bugs * move lexiconx_dict.pkl to features/assets * update dependencies * delete legacy files and remove constant nltk import * clean up package structure and warnings * resolve relative imports issue in sphinx * create single installation script * commit setup script * update setup script and documentationZ * update README to point to setup script * add linkes to website and Rtd to readme * disable tokenizer parallelism to avoid error * add badges to home page * Named Entity Recognition + Valence Tests (#226) * valence testing * rearranging files * intermediate ner testing * NER testing * fix featurizer * fix featurize bug * updating test dataset + function * code coverage * burstiness * move testing FB's into run_tests.py * move NER dataframe to test file * adding complex tests back to run_tests.py * add chat_complex_df and conv_complex_df to run_tests.py * correct dataset paths * rebase * changing references as part of rebase * correcting FB calls based on latest interface updates * correct run_tests.py * add dd tests * burstiness fix * dd tests add * forward flow tests * src changes * testing timestamp variations * src changes * update test ds * fix formatting * fix formatting --------- Co-authored-by: Xinlan Emily Hu <xehu@wharton.upenn.edu> Co-authored-by: Xinlan Emily Hu <xehu@cs.stanford.edu> * Amy/website (#270) * website updates * renaming tpm-website to website * deploying via gh-pages * changed from tpm-website to website * deployed website * copyright and team * team headshots and footer * edits to the pages * website updates * updated links * updated homepage * link updates * mobile compatibility * mobile adjustments * navbar mobile updates * whitespace edits * homepage updates * feature table * website updates * renaming tpm-website to website * deploying via gh-pages * changed from tpm-website to website * edits to the pages * website updates * updated links * updated homepage * link updates * mobile compatibility * mobile adjustments * navbar mobile updates * homepage updates * add table of features * updated team page titles * include flask in requirements.txt * updates to table of features * load pages from top * fix to 404 issues * moved build under website folder * add flask back into requirements --------- Co-authored-by: Xinlan Emily Hu <xehu@cs.stanford.edu> Co-authored-by: Xinlan Emily Hu <xehu@wharton.upenn.edu> --------- Co-authored-by: sundy1994 <yuxuanzh@seas.upenn.edu> Co-authored-by: Shruti Agarwal <46203852+agshruti12@users.noreply.github.com> Co-authored-by: amytangzheng <145236844+amytangzheng@users.noreply.github.com>
1 parent 1614d87 commit b416e40

File tree

249 files changed

+64872
-583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+64872
-583
lines changed

.github/workflows/github-actions-test-simple.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on: [push]
44
jobs:
55
Testing-Features:
66
runs-on: ubuntu-latest
7-
defaults:
8-
run:
9-
working-directory: ./src
7+
# defaults:
8+
# run:
9+
# working-directory: ./src/team_comm_tools/
1010
steps:
1111
- name: Check out repository code
1212
uses: actions/checkout@v4
@@ -18,24 +18,20 @@ jobs:
1818

1919
- name: Install dependencies
2020
run: |
21-
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz --no-deps
22-
pip install -r requirements.txt
21+
python -m pip install --upgrade pip
22+
./setup.sh
2323
24-
- name: Additional setup
25-
run: |
26-
git submodule update --init --recursive
27-
python import_nltk.py
24+
- name: Install package in editable mode
25+
run: pip install -e .
2826

2927
- name: Run featurizer
3028
run: |
31-
cd ..
3229
cd tests
3330
python3 run_tests.py
3431
python3 run_package_grouping_tests.py
3532
3633
- name: Run tests
3734
run: |
38-
cd ..
3935
cd tests
4036
pytest test_feature_metrics.py
4137
pytest test_package.py

.gitignore

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Distribution / packaging
7+
.Python
8+
env/
9+
venv/
10+
build/
11+
develop-eggs/
12+
dist/
13+
downloads/
14+
eggs/
15+
.eggs/
16+
lib/
17+
lib64/
18+
parts/
19+
sdist/
20+
wheels/
21+
share/python-wheels/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
MANIFEST
26+
27+
# IntelliJ
28+
.idea/
29+
30+
# macOS specific files
131
.DS_Store
2-
src/data/.DS_Store
3-
src/.DS_Store
4-
src/features/lexicons/liwc_lexicons/
5-
src/features/lexicons/liwc_lexicons_small_test/
6-
src/features/lexicons/certainty.txt
7-
src/modules/
8-
src/output/*
9-
src/__pycache__/
10-
src/features/__pycache__/
11-
src/ipython_notebooks/.ipynb_checkpoints/
32+
33+
# unwanted files
34+
src/team_comm_tools/features/lexicons/liwc_lexicons/
35+
src/team_comm_tools/features/lexicons/liwc_lexicons_small_test/
36+
src/team_comm_tools/features/lexicons/certainty.txt
37+
src/team_comm_tools/modules/
38+
src/team_comm_tools/output/*
39+
src/team_comm_tools/ipython_notebooks/.ipynb_checkpoints/
1240
tests/ipython_notebooks/.ipynb_checkpoints/
1341
tests/data/vector_data/
1442
tests/test.log
@@ -17,10 +45,10 @@ tests/vector_data/*
1745
src/utils/__pycache__/
1846
.idea/
1947
*.py[cod]
20-
node_modules
2148
src/data/vectors/sentence
2249
src/data/vectors/sentiment
2350
src/features/lexicons/certainty.txt
2451
examples/vector_data/*
2552
examples/output/*
26-
node_modules/
53+
node_modules/
54+

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include src/team_comm_tools/features/lexicons *
2+
include src/mypackage/features/assets/*
3+
include README.md
4+
include LICENSE
5+
include requirements.txt

README.md

Lines changed: 18 additions & 12 deletions

docs/.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
# rust: "1.64"
1616
# golang: "1.19"
1717
jobs:
18-
pre_install: # Stuff in src/requirements.txt dependso on en_core_web_sm, which in turn depends on spacy
18+
pre_install: # Stuff in src/requirements.txt depends on en_core_web_sm, which in turn depends on spacy
1919
- pip install spacy==3.7.2
2020
- bash -c "python3 -m spacy download en_core_web_sm"
2121

@@ -34,4 +34,4 @@ sphinx:
3434
python:
3535
install:
3636
- requirements: ./docs/requirements.txt
37-
- requirements: ./src/requirements.txt
37+
- requirements: ./requirements.txt
3.72 KB
Binary file not shown.
107 KB
Binary file not shown.
352 Bytes
Binary file not shown.
112 Bytes
Binary file not shown.
80 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)