| Literature DB >> 31318881 |
Abstract
We propose a new method for vectorizing a document using the relational characteristics of the words in the document. For the relational characteristics, we use two types of relational information of a word: 1) the centrality measures of the word and 2) the number of times that the word is used with other words in the document. We propose these methods mainly because information regarding the relations of a word to other words in the document are likely to better represent the unique characteristics of the document than the frequency-based methods (e.g., term frequency and term frequency-inverse document frequency). In experiments using a corpus consisting of 14 documents pertaining to four different topics, the results of clustering analysis using cosine similarities between vectors of relational information for words were comparable to (and more accurate than in some cases) those obtained using vectors of frequency-based methods. The clustering analysis using vectors of tie weights between words yielded the most accurate result. Although the results obtained for the small dataset used in this study can hardly be generalized, they suggest that at least in some cases, vectorization of a document using the relational characteristics of the words can provide more accurate results than the frequency-based vectors.Entities:
Mesh:
Year: 2019 PMID: 31318881 PMCID: PMC6638850 DOI: 10.1371/journal.pone.0219389
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Document–term matrix for the example four documents.
| apple | banana | carrot | eggplant | grape | orange | |
|---|---|---|---|---|---|---|
| 2 | 1 | 0 | 1 | 0 | 0 | |
| 0 | 1 | 1 | 1 | 0 | 1 | |
| 1 | 2 | 1 | 0 | 0 | 0 | |
| 0 | 1 | 0 | 0 | 1 | 1 |
Fig 1Word network of DocA.
* The size of a node refers to the degree of the node, whereas the width of a tie between two nodes refers to the weight of the tie.
Centralities of the words in the network of DocA.
| Centrality | apple | banana | carrot | cherry | eggplant | grape | melon | orange | pear | spinach | watermelon |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Degree | 0.60 | 0.60 | 0.20 | 0.30 | 0.80 | 0.60 | 0.30 | 0.60 | 0.30 | 0.30 | 0.40 |
| Betweenness | 0.11 | 0.11 | 0.00 | 0.00 | 0.49 | 0.06 | 0.00 | 0.06 | 0.00 | 0.00 | 0.00 |
| Closeness | 0.71 | 0.71 | 0.45 | 0.53 | 0.83 | 0.71 | 0.53 | 0.71 | 0.53 | 0.56 | 0.53 |
| Eigenvector | 0.39 | 0.39 | 0.15 | 0.13 | 0.41 | 0.40 | 0.13 | 0.40 | 0.13 | 0.23 | 0.30 |
Fig 2Example network.
Weight values of the ties between two words of “apple,” “banana,” “eggplant,” “grape,” and “orange” in DocA.
| Words pair | ('apple', 'banana') | ('apple', 'eggplant') | ('apple', 'grape') | ('apple', 'orange') | ('banana', 'eggplant') | ('banana', 'grape') | ('banana', 'orange') | ('eggplant', 'grape') | ('eggplant', 'orange') | ('grape', 'orange') |
|---|---|---|---|---|---|---|---|---|---|---|
| Tie weight | 3 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 |
Results of the clustering analyses of the 14 documents.
| Document ID | NMI | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Correct cluster ID | - | 0 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| TF | 1.0 | 0 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| TFIDF | 1.0 | 0 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| Degree | 1.0 | 0 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| Betweenness | 0.70 | 0 | 0 | 0 | 2 | 1 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| Closeness | 0.82 | 0 | 0 | 0 | 1 | 1 | 3 | 2 | 2 | 2 | 2 | 0 | 0 | 0 | 0 |
| Eigenvector | 1.0 | 0 | 0 | 0 | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 |
| Tie weight | 0.66 | 1 | 0 | 0 | 1 | 1 | 1 | 2 | 3 | 2 | 2 | 1 | 1 | 1 | 1 |
* NMI: Normalized mutual information
Fig 3Score plots of each method.
Note: Horizontal axis: Number of Clusters, Vertical axis: Score.
Fig 4Dendrogram plots of the hierarchical clustering analyses.
Note: Horizontal axis: Document ID, Vertical axis: Distance.
of each vector method.
| TF | TFIDF | Degree | Betweenness | Closeness | Eigenvector | Tie weight | |
|---|---|---|---|---|---|---|---|
| 0.614 | 0.514 | 0.555 | 0.639 | 0.342 | 0.473 | 0.472 | |
| 0.070 | 0.047 | 0.074 | 0.035 | 0.100 | 0.068 | 0.006 | |
| 8.762 | 11.025 | 7.462 | 18.115 | 3.410 | 6.917 | 84.681 |
*
**