From a68e51c048be45d5734ac2ca03b8061a1013d137 Mon Sep 17 00:00:00 2001 From: Ashkon Farhangi Date: Sat, 8 Aug 2020 13:57:26 -0700 Subject: [PATCH] minor readme updates --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e915042..630c3e8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Arguments: | Name | Type | Description | Optional? | Default Value | |-------------------|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------------| -| `transition_weights` | Once nested list or dictionary, or similar. | The graph to which the PageRank algorithm is applied represented as the weights between its nodes. It should be encoded sparsely as a once nested dictionary or a once nested list. If encoded sparsely as a once nested dictionary, keys and nested keys should correspond to node names and values to weights. Other datastructures with the same nested key-value interface, such as certain Pandas matrices, are also acceptable. If encoded as a once nested list, node names are assigned as the indices corresponding to locations in the nested list. | False | N/A | +| `transition_weights` | Once nested list or dictionary, or similar. | The graph to which the PageRank algorithm is applied represented as the weights between its nodes. It should be encoded sparsely as a once nested dictionary or a once nested list. If encoded sparsely as a once nested dictionary, keys and nested keys should correspond to node names and values to weights. Other datastructures with the same nested key-value interface, such as certain Pandas matrices, are also acceptable. If encoded as a once nested list, node names are assigned as the indices corresponding to locations in the nested list. | False | | | `rsp` | `float` | The graph to which the PageRank algorithm is applied represented as the weights between its nodes. It should be encoded sparsely as a once nested dictionary or a once nested list. If encoded sparsely as a once nested dictionary, keys and nested keys should correspond to node names and values to weights. Other datastructures with the same nested key-value interface, such as certain Pandas matrices, are also acceptable. If encoded as a once nested list, node names are assigned as the indices corresponding to locations in the nested list. | True | `0.15` | | `epsilon` | `float` | The threshold of convergence. If the Euclidean norm of the difference between the approximations of the steady state vector before and after an iteration of power iteration is smaller than epsilon, the algorithm will consider itself to have converged and will terminate. | True | `0.00001` | | `max_iterations` | `int` | The number of iterations after which power iteration will be terminated even if it has not yet converged. | True | `1000` | @@ -60,7 +60,7 @@ Arguments: | Name | Type | Description | Optional? | Default Value | |-----------------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|---------------| -| `document` | `str` | A string representing a document. Note that all characters in the string must be standard ASCII characters to avoid exceptions. | False | N/A | +| `document` | `str` | A string representing a document. Note that all characters in the string must be standard ASCII characters to avoid exceptions. | False | | | `windowSize` | `int` | The width of the window in which two words must fall to be considered to have co-occured. For a window size of 2, the default value of this argument, a word will be considered to have co-occurred with any word one or two words away from it in the document. | True | `2` | | `rsp` | `float` | Again the random surfer probability that represents the probability with which the random walk through the graph will deviate from its edges and instead jump randomly to any node in the graph. | True | `0.15` | | `relevant_pos_tags` | `[str]` | The TextRank algorithm will filter the words in a document down to only those of certain parts of speech. The default implementation of the algorithm only considers nouns and adjectives. See the original paper that proposed TextRank for a justification of this decision. | True | `["NN", "ADJ"]` | @@ -78,7 +78,7 @@ Arguments: | Name | Type | Description | Optional? | Default Value | |----------|---------------------------------------------|---------------------------------------------------------------------------------------------------------|----------|---------------| -| `file_name` | Once nested list or dictionary, or similar. | The name or full path of the file that contains the document the TextRank algorithm will be applied to. | False | N/A | +| `file_name` | Once nested list or dictionary, or similar. | The name or full path of the file that contains the document the TextRank algorithm will be applied to. | False | | | `title` | `str` | The document's title, an optional argument used only in printed progress indicators. | True | `"a document"` | Return value: This function has no return value, and instead prints out its results.