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 4 forks source link

Priya/docs #266

Closed PriyaDCosta closed 1 month ago

PriyaDCosta commented 1 month 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?

Docstrings for politeness_v2,politeness_v2_helper,reddit_tags and word_mimicry.

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:

NA

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