NLP is a branch of artificial intelligence that deals particularly with the processing of written language.
In short, it is everything that is related to human language and its processing by
computer tools.
Partner with us to earn a recurring 20% commission every month for up to 24 months for every customer you send our way!
Your referred customer will also get 10% off for the first year.
<?php
$tinq = new Tinq\TinqClient('<your_api_key>');
$reviews = [
'The apartment was as advertised and Frank was incredibly helpful through the entire process.',
'This was the worse experience that I had on this app. Trully disapointing',
'This is really a great location. The street is quiet and the room is really great. The bed is confortable. Terry is really helpfull. Enjoy.',
'It was decent. Nothing more to add.',
];
$analysis = [];
foreach($reviews as $review) {
$sentimentAnalysis = $tinq->sentiments($review);
$sentiment = $sentimentAnalysis['sentiment'];
$analysis[] = [
'review' => $review,
'sentiment' => $sentiment
];
}
var_dump($analysis);