I'm trying to get similar results with Watson Alchemy Sentiment API for Spanish sentences compared to translation results in English.
Here's the phrase (actually is a tweet translated from spanish)
"Lower tax revenues and increase electricity subsidy costs = disaster formula"
This is the result from Alchemy
Sentiment Score
negative -0.74192
Now same sentence but in Spanish (this is the original one)
Bajar ingresos por impuestos y aumentar gastos con subsidio eléctrico = fórmula de desastre
<docSentiment>
<type>neutral</type>
</docSentiment>
What can be done to improve this, thanks for your help.
Related
Let’s say, there is Car Dealer website where dealer shows his car inventory for sale. Each car has different prize range base on car trim like LE, SE, XLE, XSE. For example.
LE SE XLE XSE
Toyota Camry: |15000 – 20000| |25000 – 30000| |35000 – 40000| |41000 - 50000|
Toyota REV4 : |18000 – 21000| |24500 – 27000| |28000 – 33000| |34000 - 36000|
Here each row is one Document in solr. I store this prize range like this in solr document
For Toyota Camry document:
prizeMin:[15000, 25000, 35000, 41000], prizeMax:[20000, 30000, 40000, 50000]
For Toyota REV document:
prizeMin:[18000, 24500, 28000, 34000], prizeMax:[21000, 27000, 33000,36000]
So I have Prize facet with Min and Max textbox where user enter his prize range. What I want to do is, if user enter 15000 to 17000 then I want to show only Toyota Camry (LE trim fall between this range) but not Toyota REV4. If user enter 26000 to 4000 then both cars will be display (because for Camry is matches SE, XLE and for REV4 it matches SE, XLE, XSE).
This I can do by having Prize range query to solr like prize:[UserEnterMin TO *] AND prize:[* TO UserEnterMax].
However, if user enters 22000 to 23000 then I do not want to display anything because this prize range does not fall under any prize range in table. With my solution prize:[UserEnterMin TO *] AND prize:[* TO UserEnterMax] I cannot prevent this scenario from display.
So My question is how to identify that user has enter prize that fall between gaps and how can I eliminate the selection of that document using solr range query.
This can be done with the well know way of using geo functionality to model other things: see here
That link is pretty old. Since then geo stuff has been augmented and refactored, and new field types are available. You can probably model this in several different ways with those types.
Im looking to train my bot to basically extract the weight from a type of sentence and tag the intent as "#enterBMI".
I have also created an entity "#weight". I will show below in images what i have trained the bot with -
The problem i am facing is that weight is detected only for exactly the same weights that i have given training for. So 100 kg will be detected and 101 kg/100 kgs will not be detected.
Just use #sys-number entity instead of a dedicated #weight
I was just glossing over my billing history and to my surprise found out I've been charged $28.71 for Cloud Vision API Cloud Vision API Label Detection Operations. I'm really confused because it says I have "5356 counts".
The Cloud Vision pricing table lists 1001-1000000 units as $5.00 for Label Detection.
Is this a mistake on Google's billing or am I interpretting the pricing incorrectly? I've read over the description several times and am not sure how I could be misunderstanding the breakdown.
Price per 1000 units
If the count includes free quota then you have 4356 units. If the units are rounded up to 5000, then you have 5 units x $5 = 25 (+ tax?)
Pricing Chart
npe's answer is accurate. Adding more details that I have.
Had the same issue. I mailed the sales team and the
https://cloud.google.com/vision/
The tag they added to resolve any such confusions is : "Price per 1,000 units, by monthly usage"
Thanks
Suman
I'm building a search engine which provide me a list of cap drivers. We have some requirements:
User is searching cheapest cap driver to bring him from place a to place b. He can go from any place to any place.
Default formula would be distance * price per mile
But there are also special prices like AMSTERDAM to THE HAGUE would be always 100 EUR
The price for each mile is season based winter/summers have different prices.
Faceting search based on attributes. Like is there Champagne/Luxory/Male/Female driver/Etc etc.
User want's to sort on cheapest ride/but also distance.
What would be the best approach to fit all there requirements? I've tried Solr but have not found a good solution for putting the price modal in there. Any ideas?
I am given a task to develop a website for maths students with questions and their explanations.The site will have around 20,000 questions.And I need an effective way(easy storage,faster querying and fast rendering) to store those questions into the database.
Sample Question
In the first 10 overs of a cricket game, the run rate was only 3.2. What should be the run rate in the remaining 40 overs to reach the target of 282 runs?
Required run rate = 282 - (3.2 x 10) = 250 = 6.25
---------------- -----
40 40
Questions is a simple string and can easily be stored.But the real problem is to store those expressions with brackets and divide into the database?
You could store the expressions in LaTeX in the database.
Edit:
You can use libraries like http://www.mathjax.org/ for client-side rendering of the equations.
You have several options to store a string representation of mathematical expressions: MathML, LaTeX or ASCIIMathML.
For displaying it in a web browser I recommend MathJax.