You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/KeyNMF.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,10 @@ Keywords are assigned to each document based on the cosine similarity of the doc
19
19
Only the top K words with positive cosine similarity to the document are kept.
20
20
21
21
These keywords are then arranged into a document-term importance matrix where each column represents a keyword that was encountered in at least one document,
22
-
and each row is a document.
23
-
The entries in the matrix are the cosine similarities of the given keyword to the document in semantic space.
22
+
and each row is a document. The entries in the matrix are the cosine similarities of the given keyword to the document in semantic space.
23
+
24
+
Keyword extraction can be performed by computing cosine similarities between document embeddings and embeddings of the entire vocabulary,
25
+
or between document embeddings and words that occur within each document. The former scenario allows for multilingual topics.
24
26
25
27
### 2. Topic Discovery
26
28
@@ -39,7 +41,6 @@ can be explained.
39
41
40
42
### Weaknesses
41
43
42
-
- Lack of Multilingual Capabilities: KeyNMF as it is currently implemented cannot be used in a multilingual context. Changes to the model that allow this are possible, and will likely be ijmplemented in the future.
43
44
- Lack of Nuance: Since only the top K keywords are considered and used for topic extraction some of the nuances, especially in long texts might get lost. We therefore recommend that you scale K with the average length of the texts you're working with. For tweets it might be worth it to scale it down to 5, while with longer documents, a larger number (let's say 50) might be advisable.
44
45
- Practitioners have to choose the number of topics a priori.
0 commit comments