Tagger.js | JavaScript Library for tagging bodies | Natural Language Processing library
kandi X-RAY | Tagger.js Summary
kandi X-RAY | Tagger.js Summary
A JavaScript Library for tagging bodies of text with relevant keywords using the good 'ol tf-idf
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Tagger.js
Tagger.js Key Features
Tagger.js Examples and Code Snippets
Community Discussions
Trending Discussions on Tagger.js
QUESTION
I am using Google Vision API and a firebase cloud function for some handwritten text documents that are then stored into Firestore.
I am following the "Detect handwriting in images" guide here: https://cloud.google.com/vision/docs/handwriting#detect_document_text_in_a_remote_image
The problem I am having is that I can't seem to store the text payload into firestore. I can see the data coming through in the Cloud logs, but then I get an error:
imageTagger.js
cloud function:
error in this function Error: Value for argument "data" is not a valid Firestore document. Input is not a plain JavaScript object.
Here is my cloud function. Anyone spot anything?
imageTagger.js
ANSWER
Answered 2021-Jan-04 at 20:03When you call JSON.stringify
you get back a string. And while a string is a valid value for a field in Firestore, you're trying to set the entire document to a string which isn't possible:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Tagger.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page