What data structure should I use for sentiment analysis?

Waqas

I'm trying to make a Bayesian Belief Network, so that I can use it to perform Sentiment Analysis on text. I was wondering which data structure should I use for coding it in Python? A link list? Any suggestions?

JaminSore

Guido wrote an essay on implementing graphs in Python using dictionaries. He gives the following example:

Few programming languages provide direct support for graphs as a data type, and Python is no exception. However, graphs are easily built out of lists and dictionaries. For instance, here's a simple graph (I can't use drawings in these columns, so I write down the graph's arcs):

A -> B
A -> C
B -> C
B -> D
C -> D
D -> C
E -> F
F -> C 

This graph has six nodes (A-F) and eight arcs. It can be represented by the following Python data structure:

graph = {'A': ['B', 'C'],
         'B': ['C', 'D'],
         'C': ['D'],
         'D': ['C'],
         'E': ['F'],
         'F': ['C']}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What data structure should I use for sentiment analysis?

From Dev

What data structure should I use to mimic "order by counter" in Cassandra?

From Dev

What data structure should I use for a music play queue?

From Dev

What data structure should I use to represent this board?

From Dev

What data structure should I use to mimic "order by counter" in Cassandra?

From Dev

What data structure I should use for my dictionary?

From Dev

Directory structure - what path should I use?

From Dev

Which data structure should I use in Java?

From Dev

How to maintain city road data? (What data structure should I use)

From Dev

What data structure should I use to look up a string from an array of possible strings?

From Dev

What data structure should I organize my data in?

From Dev

What data type I should use for versioning?

From Dev

What type of data should I use (MySQL)?

From Dev

Which data structure should I use to handle multi value data?

From Dev

What technology should i use for streaming tweets and analysis?

From Dev

What structure should I use to store key and list of possible values?

From Dev

Simple android app, what structure should I use?

From Dev

What structure should I use to get a user with the highest score

From Dev

How can I use Google Cloud NL api for sentiment analysis?

From Dev

What data structure should I be using to get rid of [ ]?

From Dev

Which data structure should I use to search a string from CSV?

From Dev

Which data structure should I use for maintaining this information?

From Dev

What are the segmentation patterns for sentiment analysis

From Dev

What should I use for this?

From Dev

Theoretically, what data structure can I use for trees with shared memory?

From Dev

Theoretically, what data structure can I use for trees with shared memory?

From Dev

I use python 3.6 and i want to make sentiment analysis but i have an error in nltk.metrics package?

From Dev

What data type should I use for IETF language codes?

From Dev

MySQL - what data type should i use to store a set of strings

Related Related

  1. 1

    What data structure should I use for sentiment analysis?

  2. 2

    What data structure should I use to mimic "order by counter" in Cassandra?

  3. 3

    What data structure should I use for a music play queue?

  4. 4

    What data structure should I use to represent this board?

  5. 5

    What data structure should I use to mimic "order by counter" in Cassandra?

  6. 6

    What data structure I should use for my dictionary?

  7. 7

    Directory structure - what path should I use?

  8. 8

    Which data structure should I use in Java?

  9. 9

    How to maintain city road data? (What data structure should I use)

  10. 10

    What data structure should I use to look up a string from an array of possible strings?

  11. 11

    What data structure should I organize my data in?

  12. 12

    What data type I should use for versioning?

  13. 13

    What type of data should I use (MySQL)?

  14. 14

    Which data structure should I use to handle multi value data?

  15. 15

    What technology should i use for streaming tweets and analysis?

  16. 16

    What structure should I use to store key and list of possible values?

  17. 17

    Simple android app, what structure should I use?

  18. 18

    What structure should I use to get a user with the highest score

  19. 19

    How can I use Google Cloud NL api for sentiment analysis?

  20. 20

    What data structure should I be using to get rid of [ ]?

  21. 21

    Which data structure should I use to search a string from CSV?

  22. 22

    Which data structure should I use for maintaining this information?

  23. 23

    What are the segmentation patterns for sentiment analysis

  24. 24

    What should I use for this?

  25. 25

    Theoretically, what data structure can I use for trees with shared memory?

  26. 26

    Theoretically, what data structure can I use for trees with shared memory?

  27. 27

    I use python 3.6 and i want to make sentiment analysis but i have an error in nltk.metrics package?

  28. 28

    What data type should I use for IETF language codes?

  29. 29

    MySQL - what data type should i use to store a set of strings

HotTag

Archive