How to detect french toxic comments with tensorflow - tensorflow.js

I am developing a chat application in French and I want to block a certain type of message (of a sexual nature for example)
Ideally a js api would help me out, I've explored tensorflow.js which looks fine to me but unless I misconfigured, it only considers English sentences. If anyone can help me with this I would greatly appreciate it.

I finally discovered the Google API called Perspective https://perspectiveapi.com which takes into consideration several languages and is very easy to use.
it might help someone else...

Related

Angular-Fullstack Generator: How to create a persistent file upload using the boilerplate?

Thank you for reading this post.
As a newcomer to the programming community, I have what I believe to be a fairly easy question.
How do you implement a file upload (particularly images) using the MEAN stack (yeoman angular-fullstack generator in particular)? An explanation using the yeoman angular-fullstack boilerplate would be appreciated.
In particular, could you please make a step-by-step explanation. This is not recorded anywhere on the internet, so your help will be recognized and appreciated! :-)
While there are numerous explanations out there, those explanations always answer a particular user's question (as do many other questions/answers) and are not applicable to general use cases. Those explanations typically require one to be able to parse through numerous lines of irrelevant code, in order to absorb the information that's relevant. As such, a "noob" is not able to utilize the part of the code that is applicable to him/her. That is why I'm asking for an explanation using the boilerplate of a generator, so that myself and others may use this information -- now and in the future.
Using search engines and research, I have come across the predominate answer that ng-file-upload and multer can accomplish this task. However, there is no rudimentary explanation of how this used implemented within a MEAN stack together (particularly, angular-fullstack -- the predominate MEAN stack implementation at this time).
Today, any general non-static website requires a file-upload implementation, and it seems extremely odd that there is very little documentation on this issue. I've read numerous O'Reilly books on MongoDB, but this issue is not addressed. Images and Videos are essential to commercial-grade websites, and these topics should be documented in a way that is digestible for newcomers to MEAN programming.
Thank you for your time, and I appreciate any and all helpful answers and comments.
you can use my code which is MEAN project for image upload
https://github.com/RohitShedage/image-upload

Some questioning about codenameone

I don't know if it's the good place to ask these questions. So if it's not the case sorry for inconvenience.
We are looking for the most adapted tool for our crossplatform mobile project. Before begin to invest time we are testing many crossplatform develeoppement solution ... it's difficult to find the tool where you say Yes it this one !!
Actually we are beginning to test codename one. It looks very promising but we have some doubts and question about features and how we can organize our project :
Do you know if it is possible to separate code and design -> build each "screen of the app" with one xml file to describe components and style and one java class to define behavior and contents(dynamically or not) of these components ?
What about nfc support ? at least for android apps ?
The ui components are not really "sexy" in examples. Do you know if it is possible to load/download or why not buy some more attractive one.
I hope you will be able to answer our questions
Thank you and sorry for my english ...
build each "screen of the app" with one xml file take a look at
https://www.codenameone.com/blog/gui-builder-walkthru.html
What about nfc support ? at least for android apps ? see here
https://www.codenameone.com/blog/native-interface.html
The ui components are not really "sexy" in examples.
https://www.codenameone.com/gallery.html
But overall I would like to suggest you can't get 'that' sexy unless you not try. Don't take it wrong but see the examples submitted by other and what they developed you may get same or more than that if you try.
I hope you will be able to answer Your questions :)
Cheers

Building search functionality in a web-app

I am currently developing a help section (web-app) using angular.js to represent something pretty close to this https://help.instagram.com/
I have several pages which discuss's several aspects of the product at hand. Now, i am stuck with trying to implement a in app search feature so that users can simply search for something that they may be looking for.
Some heads up with where i could start and what i should be doing would be really helpful! Thanks a ton guys :)

Topic Modeling tool multilingual

In the past few days I have been trying to work with the tool understanding topic modeling for multiple languages. This is the tool I have been trying to understand.
https://code.google.com/p/topic-modeling-tool/
Well my first question is to know whether it works for other languages like Hindi, Spanish,French and many others.
If it works with other languages then Can anyone explain the input procedure for languages like Hindi, Spanish, etc. ? I know that it works for English really well. Please help me out. Thanking everyone in advance.
According to the discussion here, people have been using it for French and Russian
You may like this other open-source project:
https://github.com/ArtificiAI/Multilingual-Latent-Dirichlet-Allocation-LDA
Here is a tutorial on how to use it for many languages and with explanations on what it does:
https://github.com/ArtificiAI/Multilingual-Latent-Dirichlet-Allocation-LDA/blob/master/Multilingual-LDA-Pipeline-Tutorial.ipynb

Proper Font Browser dialogs

The System.Windows.Forms.FontBrowser is a pretty horrible piece of work. I'd like to write a custom one, but before I re-invent banging-two-rocks-together, I figured I'd ask if anyone knows an intuitive, friendly and above all simple Font Picker which has been proven in the cauldron of the real world?
I agree with you about how terrible is Windows default font browser.
Some time ago I started to search for a replacement fontdialog, but could not find any (even after some days searching).
So I started to develop one in VB.NET, but never got time to finish it.
This article can help you (as it helped me) to identify what a good font dialog should have. Hope this helps you somehow. link.
If you manage to make one, please let me know! I`d love to test and use it :)
EDIT1: This link can help too.

Resources