Skip to content

Commit

Permalink
fix: added function usages to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paradise1260 committed Jan 28, 2022
1 parent 9d9da58 commit 3cbffc4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pip install textfeatureinfo
python
```

5. In the Python prompt type the following:
5. In the Python prompt type the followings to import all the functions:

```bash
>>> from textfeatureinfo import textfeatureinfo
Expand All @@ -70,7 +70,14 @@ python
>>> from textfeatureinfo.textfeatureinfo import remove_stop_words
```

Now you can use the functions.
6. You can use the functions as below:

```bash
>>> count_punc("Hello, World!")
>>> avg_word_len("Hello, World!")
>>> perc_cap_words("THIS is a SPAm MESSage.")
>>> remove_stop_words("Tomorrow is a big day!")
```

## Contributing

Expand Down

0 comments on commit 3cbffc4

Please sign in to comment.