Watts-Lab / team_comm_tools

An open-source Python library that turns multiparty conversational data into social-science backed features.
https://teamcommtools.seas.upenn.edu/
MIT License
3 stars 5 forks source link

DD, FFlow, Certainty Docs #277

Closed agshruti12 closed 2 months ago

agshruti12 commented 2 months ago

Pull Request Template: If you are merging in a feature or other major change, use this template to check your pull request!

Basic Info

What's this pull request about? Conceptual documentation for discursive diversity, forward flow, and certainty features.

My PR Adds or Improves Documentation

If your feature is about documentation, ensure that you check the boxes relevant to you.

Docstrings

Feature Wiki

General Documentation

My PR is About Adding a New Feature to the Code Repository

Adding Feature to the Feature Dictionary

  "Function Word Accommodation": {
    "columns": ["function_word_accommodation"],
    "file": "./features/word_mimicry.py",
    "level": "Chat",
    "semantic_grouping": "Variance",
    "description": "The total number of function words used in a given turn that were also used in the previous turn. Function words are defined as a list of 190 words from the source paper.",
    "references": "(Ranganath et al., 2013)",
    "wiki_link": "https://github.com/Watts-Lab/team-process-map/wiki/C.9-Mimicry:-Function-word,-Content-word,-BERT,-Moving",
    "function": ChatLevelFeaturesCalculator.calculate_word_mimicry,
    "dependencies": [],
    "preprocess": [],
    "vect_data": False,
    "bert_sentiment_data": False
  }

Documentation

Did you document your feature? You should follow the same requirements as above:

Code Basics

Testing

The location of my tests are here:

[PASTE LINK HERE]

If you check all the boxes above, then you ready to merge!