In such a dynamic field, it can be hard to tell what knowledge you should keep and what knowledge you might only need temporarily. Regardless of your specialization, these four established principles will appear time and time again throughout your career.
Abstraction — handle complexity by hiding implementation details from the user. Whenever you call an API, you are using an example of abstraction. You don’t know or need to know what the code within the API looks like — you only need it to return the result. This can also apply to methods, objects, and data structures. …
In this guide we are going to create Blinknotes, a lightweight app that uses NLP to summarize anything from news articles, research papers, blog posts, or long comments. We’ll discuss the defining aspects of a Chrome extension, implement solutions to edge cases, and adhere to the conventions imposed by the Chromium developers.
Paint.net is great for basic image editing, it has most of the functionality of photoshop but is easier to learn and free. I used it to create the banner and 16x16, 32x32, 48x48, and 128x128 pixel files.
Add 2 lines of code.
It is considered good practice to rate limit an API to allow for a better flow of data and to increase security by mitigating attacks such as DDoS. Rate limiting will restrict the number of requests that can be made from a unique IP address during a designated period of time.
from ratelimit import limits
@limits(calls=1, period=1) #max 1 call per second
def respond(): #API code
If the limit is exceeded, the following exception will be raised.
raise RateLimitException(‘too many calls’, period_remaining)
And that’s all. Just as developers are taught to code around SQL injections, rate limiting is another necessary measure that should be implemented with any API .
Text summarization APIs can be expensive, inconsistent, and inaccurate. Customize one for your use-case with these python libraries.
After experimenting with several summarization libraries, I found sumy to be the most accurate. There is no new text generated — sumy simply scores each sentence by significance and returns the top x results. Because the first paragraph of an article usually attempts to summarize the page, I wanted to include it with every response.
Although sumy’s scoring system performs well, its article extraction mechanism is not great. It will often interpret comments, advertisements, and unrelated subsections as part of the story…
As I read the documentation that came with access to OpenAI’s latest release, I noticed the warnings throughout had a chilling tone. At 175 billion parameters, this was by far the largest Transformer-based language model in the world (Microsoft’s Turing-NLG comes in second at 17 billion). At 1.6 billion parameters, GPT-2 was so good at generating realistic text that OpenAI refused to make the weights open-source, concerned about the creation and spread of fake news.
I entered the chat playground and started typing with the attitude of 4chan’s angriest degenerate. If it was truly trained on all of the text…
Ruby is a language I don’t have much experience in. Whenever I’m learning a new language, I try to compare it to Java because that is where I have the most experience. In this blog post, I’m going to note what I found new and interesting about Ruby.
In Java and most other languages, String literals are immutable. Strings are stored in a special part of the JVM called the String Pool, and there will never be a duplicate spot in the memory for the same String. …