Giter VIP home page Giter VIP logo

Comments (6)

stijnh avatar stijnh commented on August 10, 2024

Hi SS159. Thanks for using litstudy!

I am not sure if I understand your question. Could you maybe show the code that you are dealing with?

You can load a CSV file using litstudy.load_csv which returns a DocumentSet. That function automatically detects the title as "Item Title" and the DOI as "Item DOI".

You can give this DocumentSet to build_corpus as the first argument to build a corpus.

from litstudy.

SS159 avatar SS159 commented on August 10, 2024

Hi stijnh,

Thanks for the quick response. Sure, below is the code I'm using. I can't see where the DocumentSet is located/saved (doesn't seem to be in the working directory) - perhaps this is the problem?

image

image

from litstudy.

stijnh avatar stijnh commented on August 10, 2024

The function refine_scopus returns two DocumentSets: the documents found on Scopus and the document not found on Scopus.

You can use it as follows:

docs_springer, docs_notfound  = litstudy.refine_scopus(docs_springer)

Here docs_springer is the DocumentSet that contains the documents found on Scopus. Give this value to build_corpus.

And docs_notfound is the DocumentSet that contains the documents not found on Scopus. You can ignore this value.

from litstudy.

SS159 avatar SS159 commented on August 10, 2024

Thanks for getting back to me Stijnh. Unfortunately, I still can't get litstudy to build a corpus from the papers I have downloaded from Scopus, as I am finding the following error

image

Note that: 1) I am using, for now, only one .csv which is from Scopus and contains 72 papers. That means that I have not merged any .csv files; 2) I have not included the function which separates documents found and not found on Scopus; 3) I note that .csv files downloaded from Scopus are not automatically saved in the format 'title' and 'doi', but rather 'item title' and 'item doi', which may also be why litstudy is unable to find attribute 'title' in the documentset (which, again, in this case is just one document 'docs_springer').

Thanks,

SS159

from litstudy.

SS159 avatar SS159 commented on August 10, 2024

Hi again, just tried with the .csv from Springer instead, (which also automatically saves as 'Item Title') - can't seem to get it to work with this one either, even after changing the .csv metadata from 'Item Title' to 'Title'

image

from litstudy.

stijnh avatar stijnh commented on August 10, 2024

Hi.

Replace the line

docs_springer = litstudy.refine_scopus(docs_springer)

by

docs_springer, docs_notfound = litstudy.refine_scopus(docs_springer)

from litstudy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.