Coder Social home page Coder Social logo

bookwormpython's Introduction

Hi there ๐Ÿ‘‹, I'm Peter Organisciak!

  • ๐ŸŽ“ I'm a tenured Associate Professor at the University of Denver, focusing on creativity and AI, and massive-scale text analysis.
  • ๐Ÿ› ๏ธ Currently on a research sabbatical until September 2024, I'm engaged in building new and interesting things and open to new partnerships or short-term collaborations.
  • ๐Ÿ’ก Ask me about my work with Large Language Models in creativity scoring, or working with relationship tagging of massive digital libraries.
  • ๐Ÿ™‹ Pronouns: identify He/Him, fine with ungendered alternatives
  • ๐ŸŒ Visit my website at porg.dev for more about my work and access to my online tools.
  • ๐Ÿ“„ My online CV, and recent publications at Google Scholar.
  • ๐ŸŽจ Something fun: try this small color composition game: Hue Hunter (hues.red).

bookwormpython's People

Contributors

organisciak avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

dkudeki

bookwormpython's Issues

Support multiple search_limits

Not currently supported - multiple searches in one query:

                  {"word":["tea"],"date_year":{"$gte":1760,"$lte":2010},"publication_country__id":["2"]},
                  {"word":["coffee"],"date_year":{"$gte":1760,"$lte":2010},"publication_country__id":["2"]}
]```

It can run if you turn off validation, but the parsing code in `BWResults` wouldn't know what to do with it.

Python 2 support

Should work in Python 2, but I've been neglecting testing it. Mostly a note-to-self.

limited_field_values

Need a method that tells you all the possible fields for the current search limit.

Use return_pandas method?

This might be better filed as an issue on BookwormAPI called "Should return_pandas method be retired?", but I just want to get your thoughts without spamming everyone, so filing it as a feature request insincerely.

You say here that JSON is "more transparent and safer."

    def _fetch(self, query, type="pandas"):
        ''' Get results from a bookworm Server
            This method calls JSON and converts to Pandas, rather than using
            Bookworm's built-in DataFrame return method, as JSON is a more
            transparent and safer format for data interchange.

Care to elucidate? If you're right, it might make sense simply to retire the return_pandas method entirely (it's never been fully documented): the two uses cases for it I can think of are

  1. This one: a numpy based set of code for using the API
  2. As the internal interchange format in a meta-Bookworm aggregating across servers.

If it's not safe enough to use for 1, as you imply, it might not be safe enough for number 2 either. So what are the safety issues involved?

insecure connection error

Error:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)

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.