2

The problem you face is part of what is called in literature grammar learning or grammar inference which is part of both Natural Language Processing and Machine Learning and in general is a very difficult problem. However for certain cases like regular grammars/languages (ie learning regular expressions / DFA learning) there are satisfactory solutions up to ...


2

Here are a few ideas: If the number of strings is not too high, you could consider taking a formal approach and use a finite automata determinization algorithm (I'm very rusty about this stuff but I clearly remember that there is such a thing). The idea is to start from a big automaton made of the union of all the strings, then use the algorithm to find the ...


1

Yes, its called graph-api. https://developers.facebook.com/docs/graph-api/reference/v7.0/page/feed You should be aware that scraping data from facebook not using this api its violation of the regulations of fb laws and could you be ended with ban. So be careful.


1

Accuracy is symmetric in the naming of positive/negative classes, but precision is not: for accuracy, it doesn't matter which class is "positive." So accuracy_score doesn't have a parameter pos_label, and will error if you try to pass that parameter; meanwhile precision_score has default pos_label=1, so if your labels don't include 1 and you leave ...


Only top voted, non community-wiki answers of a minimum length are eligible