Skip to content

Instantly share code, notes, and snippets.

👷‍♂️
looking for a job

Rinat Valiullov RinatValiullov

👷‍♂️
looking for a job
View GitHub Profile
@RinatValiullov
RinatValiullov / classification-index.js
Last active Dec 2, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View classification-index.js
// index.js
var natural = require('natural');
var classifier = new natural.BayesClassifier();
classifier.addDocument('i am long qqqq', 'buy');
classifier.addDocument('buy the q\'s', 'buy');
classifier.addDocument('short gold', 'sell');
classifier.addDocument('sell gold', 'sell');
classifier.train();
@RinatValiullov
RinatValiullov / string_distance-output.js
Created Nov 29, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
@RinatValiullov
RinatValiullov / string_distance-index.js
Last active Dec 2, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View string_distance-index.js
// index.js
var natural = require('natural');
console.log(natural.HammingDistance("karolin", "kathrin", false));
console.log(natural.HammingDistance("karolin", "kerstin", false));
console.log(natural.HammingDistance("short string", "longer string", false));
@RinatValiullov
RinatValiullov / stemming-output.js
Created Nov 29, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View stemming-output.js
[ 'go', 'friend' ]
@RinatValiullov
RinatValiullov / stemming-index.js
Created Nov 29, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View stemming-index.js
// index.js
var natural = require('natural');
natural.PorterStemmer.attach();
console.log("I can see that we are going to be friends".tokenizeAndStem());
@RinatValiullov
RinatValiullov / tokenization-output.js
Created Nov 29, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View tokenization-output.js
[ 'The',
'quick',
'brown',
'fox',
'jumps',
'over',
'the',
'lazy',
'dog' ]
@RinatValiullov
RinatValiullov / tokenization-index.js
Created Nov 29, 2019
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
View tokenization-index.js
// index.js
var natural = require('natural');
var tokenizer = new natural.WordTokenizer();
console.log(tokenizer.tokenize("The quick brown fox jumps over the lazy dog"));
@RinatValiullov
RinatValiullov / import.js
Created Nov 19, 2019
For translation of article "Ionic React - First Look" - bit.ly/2QxRhXD
View import.js
import { IonItem, IonLabel, IonDatetime, IonContent } from '@ionic/react';
@RinatValiullov
RinatValiullov / serve.md
Created Nov 19, 2019
For translation of article "Ionic React - First Look" - bit.ly/2QxRhXD
View serve.md
ionic serve
@RinatValiullov
RinatValiullov / project_type.md
Created Nov 19, 2019
For translation of article "Ionic React - First Look" - bit.ly/2QxRhXD
View project_type.md
? Starter template: (Use arrow keys)
  blank      | A blank starter project
  sidemenu   | A starting project with a side menu with navigation in the content area
❯ tabs       | A starting project with a simple tabbed interface
  conference | A kitchen-sink application that shows off all Ionic has to offer
You can’t perform that action at this time.