Skip to content

Commit

Permalink
update docs in liwc.rst and build again
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy1994 committed Dec 20, 2024
1 parent 380f64b commit 009d33e
Show file tree
Hide file tree
Showing 62 changed files with 76 additions and 664 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/examples.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/feature_builder.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/basic_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/burstiness.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/certainty.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/discursive_diversity.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/fflow.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/get_all_DD_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/get_user_network.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/hedge.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/info_exchange_zscore.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/information_diversity.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/lexical_features_v2.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/features/other_lexical_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/politeness_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/politeness_v2.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/politeness_v2_helper.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/question_num.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/readability.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/reddit_tags.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/temporal_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/textblob_sentiment_analysis.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/turn_taking_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features/variance_in_DD.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/features/word_mimicry.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/TEMPLATE.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/mimicry_bert.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/moving_mimicry.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/positivity_bert.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/features_conceptual/word_ttr.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/intro.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/assign_chunk_nums.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/calculate_chat_level_features.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/doctrees/utils/calculate_user_level_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/check_embeddings.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/gini_coefficient.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/preload_word_lists.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/preprocess.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/summarize_features.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/utils/zscore_chats_and_conversation.doctree
Binary file not shown.
258 changes: 3 additions & 255 deletions docs/build/html/feature_builder.html

Large diffs are not rendered by default.

93 changes: 8 additions & 85 deletions docs/build/html/genindex.html

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions docs/build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,7 @@ <h2>Table of Contents<a class="headerlink" href="#table-of-contents" title="Link
<li class="toctree-l2"><a class="reference internal" href="features_conceptual/index.html#conversation-level-features">Conversation-Level Features</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="feature_builder.html">feature_builder module</a><ul>
<li class="toctree-l2"><a class="reference internal" href="feature_builder.html#feature_builder.FeatureBuilder"><code class="docutils literal notranslate"><span class="pre">FeatureBuilder</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="feature_builder.html">feature_builder module</a></li>
<li class="toctree-l1"><a class="reference internal" href="utils/index.html">Utilities</a><ul>
<li class="toctree-l2"><a class="reference internal" href="utils/index.html#driver-classes-utterance-conversation-and-speaker-level-features">“Driver” Classes: Utterance-, Conversation-, and Speaker-Level Features</a></li>
<li class="toctree-l2"><a class="reference internal" href="utils/index.html#other-utilities">Other Utilities</a></li>
Expand Down
Binary file modified docs/build/html/objects.inv
Binary file not shown.
15 changes: 0 additions & 15 deletions docs/build/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ <h1>Python Module Index</h1>
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
<tr class="cap" id="cap-f"><td></td><td>
<strong>f</strong></td><td></td></tr>
<tr>
<td></td>
<td>
<a href="feature_builder.html#module-feature_builder"><code class="xref">feature_builder</code></a></td><td>
<em></em></td></tr>
<tr>
<td><img src="_static/minus.png" class="toggler"
id="toggle-1" style="display: none" alt="-" /></td>
Expand Down Expand Up @@ -245,16 +240,6 @@ <h1>Python Module Index</h1>
<td>&#160;&#160;&#160;
<a href="utils/calculate_chat_level_features.html#module-utils.calculate_chat_level_features"><code class="xref">utils.calculate_chat_level_features</code></a></td><td>
<em></em></td></tr>
<tr class="cg-2">
<td></td>
<td>&#160;&#160;&#160;
<a href="utils/calculate_conversation_level_features.html#module-utils.calculate_conversation_level_features"><code class="xref">utils.calculate_conversation_level_features</code></a></td><td>
<em></em></td></tr>
<tr class="cg-2">
<td></td>
<td>&#160;&#160;&#160;
<a href="utils/calculate_user_level_features.html#module-utils.calculate_user_level_features"><code class="xref">utils.calculate_user_level_features</code></a></td><td>
<em></em></td></tr>
<tr class="cg-2">
<td></td>
<td>&#160;&#160;&#160;
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

182 changes: 3 additions & 179 deletions docs/build/html/utils/calculate_conversation_level_features.html

Large diffs are not rendered by default.

111 changes: 3 additions & 108 deletions docs/build/html/utils/calculate_user_level_features.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@
<li class="toctree-l2 current"><a class="reference internal" href="index.html#driver-classes-utterance-conversation-and-speaker-level-features">“Driver” Classes: Utterance-, Conversation-, and Speaker-Level Features</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="calculate_chat_level_features.html">calculate_chat_level_features module</a></li>
<li class="toctree-l3"><a class="reference internal" href="calculate_conversation_level_features.html">calculate_conversation_level_features module</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">calculate_user_level_features module</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator"><code class="docutils literal notranslate"><span class="pre">UserLevelFeaturesCalculator</span></code></a></li>
</ul>
</li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">calculate_user_level_features module</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="index.html#other-utilities">Other Utilities</a></li>
Expand Down Expand Up @@ -92,110 +89,8 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="module-utils.calculate_user_level_features">
<span id="calculate-user-level-features-module"></span><span id="user-level-features"></span><h1>calculate_user_level_features module<a class="headerlink" href="#module-utils.calculate_user_level_features" title="Link to this heading"></a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">utils.calculate_user_level_features.</span></span><span class="sig-name descname"><span class="pre">UserLevelFeaturesCalculator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">chat_data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">DataFrame</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">user_data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">DataFrame</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">vect_data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">DataFrame</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">conversation_id_col</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">speaker_id_col</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">user_aggregation</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">user_methods</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">list</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">user_columns</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">list</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">chat_features</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">list</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Initialize variables and objects used by the UserLevelFeaturesCalculator class.</p>
<p>This class uses various feature modules to define user- (speaker) level features. It reads input data and
initializes variables required to compute the features.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>chat_data</strong> (<em>pd.DataFrame</em>) – Pandas dataframe of chat-level features read from the input dataset</p></li>
<li><p><strong>user_data</strong> (<em>pd.DataFrame</em>) – Pandas dataframe of user-level features derived from the chat-level dataframe</p></li>
<li><p><strong>vect_data</strong> (<em>pd.DataFrame</em>) – Pandas dataframe of message embeddings corresponding to each instance of the chat data</p></li>
<li><p><strong>conversation_id_col</strong> (<em>str</em>) – A string representing the column name that should be selected as the conversation ID. Defaults to “conversation_num”.</p></li>
<li><p><strong>speaker_id_col</strong> (<em>str</em>) – A string representing the column name that should be selected as the speaker ID. Defaults to “speaker_nickname”.</p></li>
<li><p><strong>user_aggregation</strong> (<em>bool</em>) – If true, will aggregate features at the user level</p></li>
<li><p><strong>user_methods</strong> (<em>list</em>) – Specifies which functions users want to aggregate with (e.g., mean, stdev…) at the user level</p></li>
<li><p><strong>user_columns</strong> (<em>list</em>) – Specifies which columns (at the chat level) users want aggregated for the user level</p></li>
<li><p><strong>chat_features</strong> (<em>list</em>) – Tracks all the chat-level features generated by the toolkit</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator.calculate_user_level_features">
<span class="sig-name descname"><span class="pre">calculate_user_level_features</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">DataFrame</span></span></span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator.calculate_user_level_features" title="Link to this definition"></a></dt>
<dd><p>Main driver function for creating user-level features.</p>
<p>This function computes various user-level features by aggregating chat-level data,
and appends them as new columns to the input user-level data.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>The user-level dataset with new columns for each user-level feature</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>pd.DataFrame</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_centroids">
<span class="sig-name descname"><span class="pre">get_centroids</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_centroids" title="Link to this definition"></a></dt>
<dd><p>Calculate the centroid of each user’s chats in a given conversation for future discursive metric calculations.</p>
<p>This function computes and appends the mean embedding (centroid) of each user’s chats to the user-level data.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>None</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>None</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_level_summary_statistics_features">
<span class="sig-name descname"><span class="pre">get_user_level_summary_statistics_features</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_level_summary_statistics_features" title="Link to this definition"></a></dt>
<dd><p>This function is used to aggregate the summary statistics from
chat level features to user level features.</p>
<p>There are many possible ways to aggregate user level features, e.g.:
- Mean of all chats by a given user;
- Max of all chats by a given user;
- Weighted mean (e.g., looking at different time points?)
… and so on.</p>
<p>This is an open question, so we are putting a TODO here.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_level_summed_features">
<span class="sig-name descname"><span class="pre">get_user_level_summed_features</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_level_summed_features" title="Link to this definition"></a></dt>
<dd><p>Aggregate summary statistics from chat-level features that need to be summed together.</p>
<p>Features for which summing makes sense include:
- Word count (total number of words)
- Character count
- Message count</p>
<p>This function calculates and merges the summed features into the user-level data.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>None</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>None</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_network">
<span class="sig-name descname"><span class="pre">get_user_network</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#utils.calculate_user_level_features.UserLevelFeaturesCalculator.get_user_network" title="Link to this definition"></a></dt>
<dd><p>Get the user list per user per conversation.</p>
<p>This function calculates and appends the list of other users in a given conversation to the user-level data.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>None</p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>None</p>
</dd>
</dl>
</dd></dl>

</dd></dl>

<section id="calculate-user-level-features-module">
<span id="user-level-features"></span><h1>calculate_user_level_features module<a class="headerlink" href="#calculate-user-level-features-module" title="Link to this heading"></a></h1>
</section>


Expand Down
Loading

0 comments on commit 009d33e

Please sign in to comment.