Go NLP API | Build Your Own

In my previous posts, I have talked about building a small backend server to handle HTTP POST request. We also have tried out the Google NLP and we dived into the topic of NLTK. Well, now we know how to create a Go function to handle HTTP request and we understand the idea of Natural language Processing. Why not building your own Google NLP API? Let’s now look at the key functions // Now we need to create a function to parse and tag all the data // There is a pre-built lib you can use - "gopkg.
Read more →

Text Mining | NLTK | Python

In my previous posts, we have crawled some articles and news through RSS feed and HTML tags. We played with google’s nlp api and then as a developer without too much pocket money to play with. You end up looking for cheaper and better alternatives 👉nltk (natual language toolkit). Let’s break the sentence down and let your code to define how will it read 🤓 How about let the code understand your emotions and 👉 you to the grammar mistake you made.
Read more →

Text Mining | Google NLP | Python

So I have complained about the Google’s Spreadsheets API. After I crawled the news, I feel like I should do some text mining to break the sentences down and teach my algo to read the news. And I came across Google’s NLP API, Ha! I know I won’t like it but why not?

  1. let’s create a google-nlp class # Imports the Google Cloud client library from google.cloud import language from google.
Read more →

Web Scraper | Python

For the Golang version please check here. And here is a python version: """create a rss class to parse the rss feed url anf get the title and link """ import feedparser import os class rss: def init(req, url): req.url = url def fetchDetails(req): try: url = req.url last_etag = '' last_modified = '' title = '' link = '' row = '' result = [] feed = feedparser.parse(url) last_etag = feed.
Read more →

Web Scraper | Golang

So you are interested in news and events and you want to track the latest news and headlines. And I guess you are familiar with the concept of RSS Rich Site Summary. Okay,😃Let’s start to build a simple Golang application to fetch the latest news and headlines with in a second. package main import ( "fmt" "github.com/mmcdole/gofeed" ) func feed(){ fp := gofeed.NewParser() feed, err := fp.ParseURL("http://feeds.reuters.com/reuters/UKTopNews") if err != nil { panic(err) } for _, item := range feed.
Read more →