Skip to content

How to sort refernces of the specific topic by a number of citations they have? #30

Answered by stijnh
MikhailSkl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

Unfortunately, there is not method in litstudy, but it easy to do it by hand in python.

The difficult part is that the topic modeling gives a ``fuzzy'' assignment of topics to documents. This means that each document does not belong to one single topic, but instead, has weights towards several topics. For example, a document can be for 30% on topic A and 70% on topic B.

There are two solutions:

Solution 1

The first solution is to get the best topic for each document (this means the topic with the highest weight) and then, for each topic, select the documents and sort them by citation count:

# Select best topic for each document
best_topics = model.best_topic_for_documents()

# Iterate…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stijnh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants