GithubHelp home page GithubHelp logo

vishal815 / language_predictor_ml_nlp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.03 MB

Click below to checkout the website of this ML-NLP Project

Home Page: https://vishal815-language-predictor-ml-nlp-app-dqjsvm.streamlit.app/

Jupyter Notebook 99.69% Python 0.31%
coderun data-science githubproject huggingface machine-learning ml nlp nlp-machine-learning open-source streamlit

language_predictor_ml_nlp's Introduction

Language_Predictor_ML_NLP

huggingface

Check out the hosted website here👉.

rander server

Check out the hosted website here👉

Screenshot 2023-04-21 022042

#To run code: streamlit run app.py

TfidfVectorizer

The TfidfVectorizer method helps us to achieve this by generating a numerical representation of each text document based on the frequency of each term and how often it appears in each document compared to its frequency in the entire corpus.

The ngram_range parameter in TfidfVectorizer specifies the range of n-grams to be considered. An n-gram is a contiguous sequence of n items from a given sample of text or speech. By default, TfidfVectorizer uses a unigram approach, but specifying ngram_range=(1,2) means that both unigrams and bigrams will be considered.

The analyzer parameter in TfidfVectorizer specifies the type of analysis to be performed. By setting analyzer='char', the vectorizer will generate character-level n-grams instead of word-level n-grams.

Using TfidfVectorizer from the feature_extraction.text module in the scikit-learn library, we can generate numerical representations of text data based on term frequency and inverse document frequency. By specifying ngram_range=(1,2) and analyzer='char', we can consider both unigrams and bigrams at the character level.

language_predictor_ml_nlp's People

Contributors

vishal815 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.