Blog Archive

Tuesday, September 19, 2017

New Affectiva cloud API helps machines understand emotions in human speech | TechCrunch

New Affectiva cloud API helps machines understand emotions in human speech | TechCrunch: "The company has been collecting data in the public domain and from its own data sets related to the emotional facial recognition research from around the world. They have teams of people listening to each test subject and identifying the emotion. To avoid bias, each labeler go"



'via Blog this'

Friday, September 1, 2017

priority_queue in C++ studying notes

refer:
http://www.cplusplus.com/reference/queue/priority_queue/priority_queue/
http://www.cplusplus.com/forum/general/26791/

#include <iostream>       // std::cout
#include <queue>          // std::priority_queue
#include <vector>         // std::vector
#include <functional>     // std::greater

class mycomparison
{
  bool reverse;
public:
  mycomparison(const bool& revparam=false)
    {reverse=revparam;}
  bool operator() (const int& lhs, const int&rhs) const
  {
    if (reverse) return (lhs>rhs);
    else return (lhs<rhs);
  }
};

int main ()
{
  int myints[]= {10,60,50,20};

  std::priority_queue<int> first;
  std::priority_queue<int> second (myints,myints+4);
  std::priority_queue<int, std::vector<int>, std::greater<int> >
                            third (myints,myints+4);
  // using mycomparison:
  typedef std::priority_queue<int,std::vector<int>,mycomparison> mypq_type;

  mypq_type fourth;                       // less-than comparison
  mypq_type fifth (mycomparison(true));   // greater-than comparison
  mypq_type sixth(myints,myints+4);
  mypq_type seventh(myints, myints+4,mycomparison(true));
  std::cout<<"second.top()="<< second.top() << "\nthird.top()=" << third.top()
    << "\nsixth.top()="  <<sixth.top()<< "\nseventh.top()="<< seventh.top() << std::endl;

typedef int node;
priority_queue<node,std::vector<node> > v2;
v2.push(3);
v2.push(5);
const node *p=&v2.top();
std::cout <<p[0]<<' '<<p[1]<<endl; //5 3
  return 0;
}

//output:
second.top()=60
third.top()=10
sixth.top()=60
seventh.top()=10
5 3

Brett Beranek, Author at What’s next

Brett Beranek, Author at What’s next:



'via Blog this'

Kaldi-Notes

This is an introduction to speech recognition using Kaldi. Follow one of the links to get started.
PDF snapshot of this site/manual is available. Be aware that all link within the pdf go to the website.
http://white.ucc.asn.au/Kaldi-Notes/



'via Blog this'

Four Companies Using AI To Transform The World

Four Companies Using AI To Transform The World:



'via Blog this'