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

Valence punctuation + unit tests #325

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c6c64bd
Bump path-to-regexp and express in /website (#298)
dependabot[bot] Sep 23, 2024
e060a44
Bump nltk from 3.8.1 to 3.9 (#297)
dependabot[bot] Sep 23, 2024
6a05e80
Bump body-parser and express in /website (#296)
dependabot[bot] Sep 23, 2024
1c72695
Check embedding update (#295)
xehu Sep 23, 2024
607548a
Merge branch 'main' into dev
xehu Sep 23, 2024
650197e
Update README.md to remove col = "message"
xehu Sep 23, 2024
36cd76e
Closes #302.
xehu Sep 27, 2024
21987f3
Amy/website (#301)
amytangzheng Oct 7, 2024
119efe4
Update github-actions-website.yaml (#309)
xehu Oct 7, 2024
6d25efd
Update github-actions-feature_dict.yaml (#308)
xehu Oct 7, 2024
7e87679
Package updates in Amy/website (#310)
xehu Oct 7, 2024
5678567
Update package-lock.json to local version
xehu Oct 7, 2024
d75837f
Update package-lock.json
xehu Oct 7, 2024
143cb77
Update package.json
xehu Oct 7, 2024
28f85f7
Update package-lock.json
xehu Oct 7, 2024
8b8bd24
Fix "@babel/plugin-proposal-private-property-in-object" error (#311)
xehu Oct 7, 2024
89cd16b
upgrade node packages
xehu Oct 7, 2024
d04037d
update team page + try to remove some of the deprecated packages
xehu Oct 7, 2024
bdf7035
Revert "update team page + try to remove some of the deprecated packa…
xehu Oct 7, 2024
ec2ed64
revert attempts to upgrade packages
xehu Oct 7, 2024
d83f854
Denormalize liwc (#312)
xehu Oct 7, 2024
7905240
address https://github.com/Watts-Lab/team_comm_tools/issues/300 (#313)
xehu Oct 7, 2024
bf762d0
Address issues with making feature names more clear; have cleaner def…
xehu Oct 8, 2024
1dad080
small fix to ensure filtered_dict does not generate in every run
xehu Oct 8, 2024
ed17d7a
merge in main + bump dev's version up for next time
xehu Oct 8, 2024
6b94149
PATCH FIX: Defaults in 0.1.4 were incorrectly specified
xehu Oct 8, 2024
f68d1b4
valence punctuation unit testS
agshruti12 Oct 18, 2024
60027f5
uncomment run tests
agshruti12 Nov 4, 2024
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: 0 additions & 2 deletions examples/featurize.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
tiny_juries_feature_builder = FeatureBuilder(
input_df = tiny_juries_df,
grouping_keys = ["batch_num", "round_num"],
vector_directory = "./vector_data/",
output_file_base = "jury_TINY_output", # Naming output files using the output_file_base parameter (recommended)
turns = False,
custom_features = [
Expand All @@ -56,7 +55,6 @@
tiny_multi_task_feature_builder = FeatureBuilder(
input_df = tiny_multi_task_df,
conversation_id_col = "stageId",
vector_directory = "./vector_data/",
# alternatively, you can name each output file separately. NOTE, however, that we don't directly use this path;
# we modify the path to place outputs within the `output/chat`, `output/conv`, and `output/user` folders.
output_file_path_chat_level = "./multi_task_TINY_output_chat_level_stageId_cumulative.csv",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "team_comm_tools"
version = "0.1.4.post1"
version = "0.1.4.post2"
requires-python = ">= 3.10"
dependencies = [
"chardet>=3.0.4",
Expand Down
12 changes: 6 additions & 6 deletions src/team_comm_tools/feature_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ class FeatureBuilder:
def __init__(
self,
input_df: pd.DataFrame,
vector_directory: "./vector_data/",
output_file_base = "output",
output_file_path_chat_level = None,
output_file_path_user_level = None,
output_file_path_conv_level = None,
vector_directory: str = "./vector_data/",
output_file_base: str = "output",
output_file_path_chat_level: str = None,
output_file_path_user_level: str = None,
output_file_path_conv_level: str = None,
custom_features: list = [],
analyze_first_pct: list = [1.0],
turns: bool=False,
turns: bool = False,
conversation_id_col: str = "conversation_num",
speaker_id_col: str = "speaker_nickname",
message_col: str = "message",
Expand Down
14 changes: 13 additions & 1 deletion tests/data/cleaned_data/test_chat_level.csv
Original file line number Diff line number Diff line change
Expand Up @@ -678,4 +678,16 @@ I respond to that too",num_block_quote_responses,2.0
0,0,maybe I guess possibly sort of a little,hedge_words_lexical_wordcount,5
0,0,a little possibly I think sort of probably,hedge_words_lexical_wordcount,5
0,0,probably sort of,hedge_words_lexical_wordcount,2
0,0,I think,hedge_words_lexical_wordcount,1
0,0,I think,hedge_words_lexical_wordcount,1
0,0,I love dogs,positive_bert,0.932
0,0,I love dogs!!!,positive_bert,0.980
0,0,I love dogs,negative_bert,0.012
0,0,I love dogs!!!,negative_bert,0.004
0,0,This is relatively neutral,neutral_bert,0.470
0,0,This is relatively neutral,positive_bert,0.505
0,0,This is relatively neutral...,neutral_bert,0.492
0,0,What the heck is going on,negative_bert,0.541
0,0,What the heck is going on??,negative_bert,0.730
0,0,!!!,positive_bert,0.917
0,0,.,neutral_bert,0.577
0,0,???,neutral_bert,0.713
3 changes: 2 additions & 1 deletion tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"Forward Flow",
"Discursive Diversity"
],
turns = False
turns = False,
regenerate_vectors=True
)
testing_chat.featurize()

Expand Down
Loading