Skip to content

Commit

Permalink
[CHORE] Remove NLP features (#154)
Browse files Browse the repository at this point in the history
* Add mypy CI flags to pyproject.toml

* Remove NLP code

* Update readme

* Version dump to 0.6.0
  • Loading branch information
joweich authored Jan 4, 2025
1 parent 6f8434c commit 8270643
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1,060 deletions.
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,7 @@ ax[1] = vis.radar(df, ax=ax[1], color='C1', alpha=0)
<img src="examples/radar.svg">
</p>

## 5. Natural Language Processing

### 5.1 Add Sentiment

```python
from chatminer.nlp import add_sentiment

df_sentiment = add_sentiment(df)
```
### 5.2 Example Plot: Sentiment per Author in Groupchat

```python
df_grouped = df_sentiment.groupby(['author', 'sentiment']).size().unstack(fill_value=0)
ax = df_grouped.plot(kind='bar', stacked=True, figsize=(8, 3))
```

<p align="center">
<img src="examples/nlp.svg">
</p>


## 6. Command Line Interface
## 5. Command Line Interface
The CLI supports parsing chat logs into csv files.
As of now, you **can't** create visualizations from the CLI directly.

Expand Down
2 changes: 1 addition & 1 deletion chatminer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = "0.5.4"
__version__ = "0.6.0"
49 changes: 0 additions & 49 deletions chatminer/nlp.py

This file was deleted.

Loading

0 comments on commit 8270643

Please sign in to comment.