jboynyc / textnets

Text analysis with networks.
https://textnets.readthedocs.io/
GNU General Public License v3.0
283 stars 23 forks source link

Stopwords and formatiing #60

Closed cacostame closed 10 months ago

cacostame commented 11 months ago

Hi John. Thank you for developing this application. it is very interesting. I have two questions for which I could not find information in the tutorial.

  1. Is there a way that I can add an additional stopword?
  2. Is there a way to modify the size of the nodes and/or the text font size? Thanks again for your help.
jboynyc commented 11 months ago
  1. Yes, you can pass a list of additional stopwords to tokenized, ngrams or noun_phrases. See the docs here (search for "remove").

  2. When calling the plot method, you can pass node_label_size to set the font size. The size of the nodes can be fixed using node_size, or you can pass scale_nodes_by with the name of a centrality measure to scale nodes by centrality.

Hope that helps!

cacostame commented 11 months ago

thank you John! i really appreciate it

On Fri, Oct 20, 2023 at 5:18 AM John Boy @.***> wrote:

1.

Yes, you can pass a list of additional stopwords to tokenized, ngrams or noun_phrases. See the docs here https://textnets.readthedocs.io/en/stable/_api/textnets.corpus.Corpus.html (search for "remove"). 2.

When calling the plot method, you can pass node_label_size to set the font size. The size of the nodes can be fixed using node_size, or you can pass scale_nodes_by with the name of a centrality measure to scale nodes by centrality.

Hope that helps!

— Reply to this email directly, view it on GitHub https://github.com/jboynyc/textnets/issues/60#issuecomment-1772377100, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZFDOAIG3NLAYWFNNFHK33YAI6URAVCNFSM6AAAAAA6HZUJOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGM3TOMJQGA . You are receiving this because you authored the thread.Message ID: @.***>