jouska's People
jouska's Issues
Application error : the connection to the server was unsuccessful file:///android_asset/www/index.html
Meilleur support des emojis pour le sentiment analysis
Pour l'instant le package de sentiment analysis ne tokenise pas bien les emojis. Si deux emojis sont collés "😁🤞", il les interprète comme un mot unique, et ne parvient donc pas à les analyser.
Il faudrait améliorer la tokenisation en rajoutant un espace " " après chaque emoji pour qu'ils soient bien considérés comme un seul mot.
Piste (qui ne marche pas):
let mesEmojis = "Hey ça va 😁🤞❤ ?? ";
const regexEmoji = new RegExp("/[\u{1f300}-\u{1f5ff}\u{1f900}-\u{1f9ff}\u{1f600}-\u{1f64f}\u{1f680}-\u{1f6ff}\u{2600}-\u{26ff}\u{2700}-\u{27bf}\u{1f1e6}-\u{1f1ff}\u{1f191}-\u{1f251}\u{1f004}\u{1f0cf}\u{1f170}-\u{1f171}\u{1f17e}-\u{1f17f}\u{1f18e}\u{3030}\u{2b50}\u{2b55}\u{2934}-\u{2935}\u{2b05}-\u{2b07}\u{2b1b}-\u{2b1c}\u{3297}\u{3299}\u{303d}\u{00a9}\u{00ae}\u{2122}\u{23f3}\u{24c2}\u{23e9}-\u{23ef}\u{25b6}\u{23f8}-\u{23fa}]/ug", "giu");
console.log(`emojis:`);
console.log(mesEmojis.search(regexEmoji));
webpack ne 'bundle' pas les fichiers autres que le index.ts
Mots entiers mal détecté
const ignoreLastWord = new RegExp(/.+[ !?,.:"]/, 'gim');
const allWordsExceptLast = sentence.match(ignoreLastWord); // match renvoie un tableau de correspondances, mais avec la regex il n'est sensé renvoyer qu'un seul tableau
Ca devrait renvoyer tous les mots suivis d'un espace ou d'une ponctuation. Mais ça ne marche pas bien
- sentence = "Écris "
// null
- sentence = "Écris "
// null
- sentence = "Écris "
// ["Écris "]
- sentence = "Écris m"
// ["Écris "]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.