text
stringlengths
81
47k
source
stringlengths
59
147
Question: <p>I have a set of features in which one of the features is a negative value. I intend to use Multinomial Naive Bayes for classification of my text document but the negative feature throws an error. Can I use Gaussian Naive Bayes for this setting of text classification?</p> Answer:
https://stackoverflow.com/questions/40394828/multinomial-naive-bayes-in-text-classification
Question: <p>From following links I came with some idea. I want to ask whether I am doing it right or I am in the wrong way. If I am in the wrong way, please guide me.</p> <p>Links<br/> <a href="https://stackoverflow.com/questions/9021658/using-libsvm-for-text-classification-c-sharp">Using libsvm for text classificati...
https://stackoverflow.com/questions/10734728/training-libsvm-for-text-classificationsentiment
Question: <p>Autoencoders can be used to reduce dimensionallity in feature vectors - as far as I understand. In text classification a feature vector is normally constructed via a dictionary - which tends to be extremely large. I have no experience in using autoencoders, so my questions are:</p> <ol> <li>Could autoenco...
https://stackoverflow.com/questions/24159098/feature-construction-for-text-classification-using-autoencoders
Question: <p>Suppose i have trained my classifier and i want to find the right sense of a word in a sentence. One feature people use is called collocation where you consider words to the left/right of the confusing word and position is important . I am curious why this approach works? What information does considering ...
https://stackoverflow.com/questions/8102770/collocations-in-text-classification
Question: <p>I faced a problem with text classification where I need to classify russian texts. For feature extraction, I use scikit learn TfidfTransformer and CountVectorizer, but after compiling the code there is a mistake:</p> <pre><code>'UnicodeDecodeError: 'utf8' codec can't decode byte 0xc2 in position 0: inval...
https://stackoverflow.com/questions/18011756/text-classification-for-russian-language
Question: <p>I'm trying to do text classification for a large corpus (732,066 tweets) in python</p> <pre><code># Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset #dataset = pd.read_csv('Restaurant_Reviews.tsv', delimiter = '\t', quoting = 3) # Imp...
https://stackoverflow.com/questions/44365435/python-text-classification-error-expected-string-or-bytes-like-object
Question: <p>So i am using textblob python library, but the performance is lacking.</p> <p>I already serialize it and load it before the loop( using pickle ).</p> <p>It currently takes ~ 0.1( for small training data ) and ~ 0.3 on 33'000 test data. I need to make it faster, is it even possible ?</p> <h1><strong>Some...
https://stackoverflow.com/questions/37969425/text-classification-performance
Question: <p>I am trying to train a model on text classification. I have a large labeled dataset. I have tried scikit classifiers NaiveBayes, KNeighborsClassifier, RandomForest etc. But i cannot get an accuracy above 30%. How can i use the Neural Networks for text classification? Here is the algo i have used so far<...
https://stackoverflow.com/questions/33458682/neural-networks-for-text-classification
Question: <p>I'm following this tutorial <a href="https://medium.com/tensorflow/building-a-text-classification-model-with-tensorflow-hub-and-estimators-3169e7aa568" rel="nofollow noreferrer">https://medium.com/tensorflow/building-a-text-classification-model-with-tensorflow-hub-and-estimators-3169e7aa568</a> on how to b...
https://stackoverflow.com/questions/54055415/text-classification-with-tensorflow-hub
Question: <p>I have to make a text classification program with new techniques (Not using "bag of words" and "TF-IDF"). I read about EDA but I was confused. Any ideas?</p> Answer:
https://stackoverflow.com/questions/59007277/new-techniques-of-text-classification-nlp
Question: <p>I am working on a text classification problem in which the 100 most frequent words are selected as features. I believe the results could be improved if I use a better feature selection method? Any ideas? Could TF-IDF work? If yes, then how?</p> Answer: <p>to improve the results you can use Feature selecti...
https://stackoverflow.com/questions/19220621/feature-selection-for-text-classification
Question: <p>I need to implement a simple text classification using regex, and for this I thought to apply a simple CASE WHEN statement, but rather than in case one condition is met, I want to iterate over all the CASEs.</p> <p>For example,</p> <pre class="lang-sql prettyprint-override"><code>with `table` as( SELECT 'I...
https://stackoverflow.com/questions/64881264/sql-bigquery-text-classification
Question: <p>code:</p> <pre><code>model = create_model() model.compile(optimize=tf.keras.optimizers.Adam(learning_rate=2e-5), loss=tf.keras.losses.BinaryCrossentropy(), metrics=[tf.keras.metrics.BinaryAccuracy()]) model.summary() </code></pre> <p>error:</p> <pre><code>TypeError ...
https://stackoverflow.com/questions/71850436/error-while-creating-a-model-for-binary-classification-for-text-classification
Question: <p>I'm trying do build a text classification model with python and <a href="https://textblob.readthedocs.org/en/dev/index.html" rel="nofollow noreferrer">textblob</a>, the script is runing on my server and in the future the idea is that users will be able to submit their text and it will be classified. i'm lo...
https://stackoverflow.com/questions/33883976/python-textblob-and-text-classification
Question: <p>I have to do some work on text classification that contains 800K texts. I've been trying to run an practical example I found in the following link:</p> <p><a href="http://garonfolo.dk/herbert/2015/05/r-text-classification-using-a-k-nearest-neighbour-model/" rel="nofollow noreferrer">http://garonfolo.dk/he...
https://stackoverflow.com/questions/40809626/r-text-classification-with-800k-documents
Question: <p>I just finished training my AutoML Text Classification model (single-label).</p> <p>I was planning to run a Batch Prediction using the console, but I just found out how expensive that will be because I have over 300,000 text records to analyze.</p> <p>So now I want to export the model to my local machine a...
https://stackoverflow.com/questions/70637913/how-to-export-a-google-automl-text-classification-model
Question: <p>I am new in the NLP community and need more light on something.</p> <p>I saw that Keras has an Embedding layer that is generally used before the LSTM layer. But what algorithm hides behind it? Is it Word2Vec, Glove or something else?</p> <p>My task is a supervised text classification problem.</p> Answer: ...
https://stackoverflow.com/questions/64331013/word-embedding-for-text-classification
Question: <p>I am working on a text classification problem, that is, given some text, I need to assign to it certain given labels.</p> <p>I have tried using fast-text library by Facebook, which has two utilities of interest to me:</p> <p>A) Word Vectors with pre-trained models</p> <p>B) Text Classification utilities...
https://stackoverflow.com/questions/47692906/fasttext-using-pre-trained-word-vector-for-text-classification
Question: <p>I have a question about the approach to deal with a multilabel classification problem.</p> <p>Based on literature review, I found one most commonly-used approach is Problem Transformation Approach. It transformed the multilabel problem to a number of single label problems, and the classification result is...
https://stackoverflow.com/questions/35737352/text-classification-multilable-text-classification-vs-multiclass-text-classific
Question: <p>I have two questions about how to use Tensorflow implementation of the Transformers for text classifications. </p> <ul> <li><strong>First</strong>, it seems people mostly used only the encoder layer to do the text classification task. However, encoder layer generates one prediction for each input word. Ba...
https://stackoverflow.com/questions/58123393/how-to-use-transformers-for-text-classification
Question: <p>I am trying to go deeper in my understanding of fastai API and want to be able to implement some things in “pure” pytorch and then let fastai do all of the optimization tricks.</p> <p>I am trying simple text classification with my own dataloader class. Firstly, I still get error when I try to show one batc...
https://stackoverflow.com/questions/70174383/custom-pytorch-dataloader-within-fastai-text-classification
Question: <p>How to Calculate FPR, TPR, AUC, roc_curve for multi class text classification.</p> <p>I have used following code:</p> <pre><code>from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42) from sklearn.feature_extraction.text import CountV...
https://stackoverflow.com/questions/46014642/scikit-learn-multinomialnb-for-text-classification
Question: <p>I am looking for training data for text classification into categories like sports, finance, politics, music, etc.</p> <p>Please guide to references. Hello.</p> Answer: <p>You can get a Reuters corpus by applying at <a href="http://trec.nist.gov/data/reuters/reuters.html" rel="nofollow">Reuters</a></p> ...
https://stackoverflow.com/questions/15999713/looking-for-training-data-for-text-classification
Question: <p>I use Naive Bayesian classifier for text classification. How can I make improvements of the accuracy of the algorithm using Mutual information measure for feature selection?</p> Answer: <p>there are 2 improvements that you can use in text classification . First , you improve using the preprocessing techni...
https://stackoverflow.com/questions/24845873/mutual-information-for-feature-selection-text-classification
Question: <p>Trying to understand example of use Hugging Face Model for Multilabel Text Classification using Tenroflow from <a href="https://www.daniweb.com/programming/computer-science/tutorials/539042/multilabel-text-classification-using-hugging-face-models-for-tensorflow" rel="nofollow noreferrer">https://www.daniw...
https://stackoverflow.com/questions/75827730/multilabel-text-classification-using-hugging-face-models-for-tensorflow
Question: <p>I want to train my own Word2Vec model for my text corpus. I can get the code from TensorFlow's tutorial. What I don't know is how to save this model to use for CNN text classification later? Should I use pickle to save it and then read it later?</p> Answer: <p>No pickling is not the way of saving the mode...
https://stackoverflow.com/questions/38555148/saving-word2vec-for-cnn-text-classification
Question: <p>Naive Bayes Algorithm assumes independence among features. What are some text classification algorithms which are not <strong>Naive</strong> i.e. do not assume independence among it's features.</p> Answer: <p>The answer will be very straight forward, since nearly <strong>every</strong> classifier (besides...
https://stackoverflow.com/questions/41243531/text-classification-algorithms-which-are-not-naive
Question: <p>I am doing text classification for two labels with scikit learn .. I am loading my text files with the method load_files</p> <pre><code>categories={'label0','label1'} text_data = load_files(path,categories=categories) </code></pre> <p>from the following structure:</p> <pre><code>train ├── Label0 │ ├──...
https://stackoverflow.com/questions/35246498/text-classification-with-scikit-learn
Question: <p>I have this code to do text classification with TensorFlow RNN, but how to change it to do text generation instead?</p> <p>The following text classification has 3D input, but 2D output. Should it be changed to 3D input and 3D output for text generation? and how?</p> <p>The example data are:</p> <pre><co...
https://stackoverflow.com/questions/58055095/how-to-change-this-rnn-text-classification-code-to-text-generation
Question: <p>I used to do text classification on sklearn. However, I have to do it using keras, so I followed this tutrial to encode the labels and so on as I have little experience with NN: <a href="https://www.opencodez.com/python/text-classification-using-keras.htm" rel="nofollow noreferrer">https://www.opencodez.co...
https://stackoverflow.com/questions/59741936/text-classification-using-keras-input-dimensions
Question: <p>I'm working on designing a typeahead service that can be used to search for many different things. I was thinking about creating a text classification model to categorize these searches before actually making the search. </p> <p>Here's an example of the result I'd want from the classification model.</p> ...
https://stackoverflow.com/questions/58071233/is-text-classification-fast-enough-for-type-ahead-search
Question: <p>I am currently working on a project, a <strong>simple sentiment analyzer</strong> such that there will be <strong>2 and 3 classes</strong> in <strong>separate cases</strong>. I am using a <strong>corpus</strong> that is pretty <strong>rich</strong> in the means of <strong>unique words</strong> (around 200....
https://stackoverflow.com/questions/13603882/feature-selection-and-reduction-for-text-classification
Question: <p>I am doing a text classification and I have very imbalanced data like </p> <pre><code>Category | Total Records Cate1 | 950 Cate2 | 40 Cate3 | 10 </code></pre> <p>Now I want to over sample Cate2 and Cate3 so it at least have 400-500 records, I prefer to use SMOTE over random sampling, Code </p>...
https://stackoverflow.com/questions/50999596/smote-oversampling-on-text-classification-in-python
Question: <p>How can I run TPOT to give me suggestions on what algorithm to use for a multi-label text classification? My data is already cleaned and divided into training and testing sets.</p> Answer: <p>Yes, you can use TPOT for multi-label text classification.</p>
https://stackoverflow.com/questions/64034340/does-tpot-support-multi-label-text-classification
Question: <p>I have thousands groups of paragraphs and I need to classify these paragraphs. The problem is that I need to classify each paragraph based on other paragraphs in the group! For example, a paragraph individually maybe belongs to class A but according to other paragraph in the group it belongs to class B.</p...
https://stackoverflow.com/questions/57254603/grouped-text-classification
Question: <p>We are using R naive Bayes for text classification. Results are different from hand calculated. Maybe R is performing some normalization, distribution and does not work in multinominal mode (text words with frequency). Also I am unable to understand how does R naive byes computer prior conditional probabil...
https://stackoverflow.com/questions/34242828/r-naive-bayes-text-classification-issues
Question: <p>I am using CNN for text classification, in my model after flatten layer I used output layer directly without using dense layer. is that correct or must use dense layer? </p> <p>just as example:</p> <pre><code>model.add(Conv1D(filters=100, kernel_size=2,,padding='same' ,activation='relu')) model.add(MaxPo...
https://stackoverflow.com/questions/51646074/convolutional-neural-network-cnn-for-text-classification
Question: <p>So I have basic question which I did not get answered by reading the documentation.</p> <ol> <li><p>If I want to do text classification (sentiment) about lets say an Articel with a topic. I already have the plain text without the html stuff through python libraries. Is it better to make an analysis about ...
https://stackoverflow.com/questions/73153511/nlp-text-classification-flair
Question: <p>I am interested in learning about text classification so is reading up on the theory. Next step is doing stuff and therefore I am looking for and at different tools. Some links point to <a href="http://www.cs.waikato.ac.nz/ml/weka/" rel="nofollow">WEKA</a>, however <a href="http://mallet.cs.umass.edu/index...
https://stackoverflow.com/questions/5607880/tool-for-text-classification
Question: <p>I am working on text classification using Decision Tree which uses information gain as the main value for categorisation of text document. I have extracted few features by TF*IDF value. But I not able to figure out how exactly information gain should be calculated? There are some articles suggesting about ...
https://stackoverflow.com/questions/20720130/how-to-find-information-gain-in-text-classification
Question: <p>I am trying to train a text classification module.</p> <p>When I use <code>Adam</code>, <code>RAdam</code>, or <code>RMSProp</code> for my optimizer, I get the following error:</p> <pre><code>RuntimeError: Adam/RAdam/RMSProp does not support sparse gradients </code></pre> <p>So I tried using <code>SparseAd...
https://stackoverflow.com/questions/76243788/sparse-gradient-in-text-classification-with-pytorch
Question: <p>I have large number(say 3000)key words.These need to be classified into seven fixed categories.Each category is having training data(sample keywords).I need to come with a algorithm, when a new keyword is passed to that,it should predict to which category this key word belongs to.</p> <p>I am not aware of ...
https://stackoverflow.com/questions/27002483/machine-learning-text-classification-technique
Question: <p>I want to predict a text classification which is based on the correlation of the text in the training data set.</p> <p>For eg. This is my training data: "Mouse M325", "Mouse for xyz M325", "M325 Mouse logitech", "Logitech mouse number M325"</p> <p>As it is visible that Mouse and M325 definitely have a hi...
https://stackoverflow.com/questions/40880637/predict-text-classification-using-python
Question: <p>I am doing text classification and plan to use word2vec word embeddings and pass it to Conv1D layers for text classification. I have a <a href="https://www.dropbox.com/s/bxe63rkqkaqji1x/emotion_merged_dataset.csv?dl=0" rel="nofollow noreferrer">dataframe</a> which contains the texts and corresponding label...
https://stackoverflow.com/questions/49048758/word2vec-with-conv1d-for-text-classification-confusion
Question: <p>I am working on a text classification problem, I am trying to classify a collection of words into category, yes there are plenty of libraries available for classification, so please dont answer if you are suggesting to use them.</p> <p>Let me explain what I want to implement. ( take for example )</p> <p>...
https://stackoverflow.com/questions/8136677/text-classification-into-categories
Question: <p>It's quite a while now that I'm looking for a descent <strong>dictionary based text classification</strong> library in Python.</p> <p>My use case is as follow: I will be receiving a long <strong><code>text</code></strong> which would likely talk about several things and hopefully mention some of a pre-defi...
https://stackoverflow.com/questions/73701800/dictionary-based-text-classification-in-python
Question: <p>I'm doing binary text classification. I used TF-IDF weighting to build the CNN model, but I got results that weren't as expected.</p> <pre><code>train_df = pd.read_csv(&quot;merged_data.csv&quot;, encoding='utf-8') x = train_df['Text'].values y = train_df['Label'].values x_train, x_test, y_train, y_test...
https://stackoverflow.com/questions/77861333/text-classification-based-on-tf-idf-and-cnn
Question: <p>I'm using Weka for text classification task. I created my data.arff File. It contains two attributes:</p> <ol> <li>text attribute</li> <li>class attribute</li> </ol> <p>Then, the generated ARFF file is processed with the StringToWordVector:</p> <blockquote> <p>java weka.filters.unsupervised.attribute....
https://stackoverflow.com/questions/9557650/classification-with-weka-naivebayes-classifier-text-classification
Question: <p>im trying to use Apache Spark for document classification.</p> <p>For example i have two types of Class (C and J)</p> <p>Train data is :</p> <pre><code>C, Chinese Beijing Chinese C, Chinese Chinese Shanghai C, Chinese Macao J, Tokyo Japan Chinese </code></pre> <p>And test data is : Chinese Chinese Chin...
https://stackoverflow.com/questions/24011418/apache-spark-naive-bayes-based-text-classification
Question: <p>I am training a text classification model. </p> <p><strong>Task</strong> : Given a description, identify the quantifier </p> <p><strong>For ex</strong> 1) This field contains the total revenue amount in USD -> amount </p> <p>2) This has city code -> code</p> <p>3) total deposit amount is 34 -> amount ...
https://stackoverflow.com/questions/61073198/text-classification-lstm-vs-feedforward
Question: <p><strong>Dataset</strong> : Csv files containing around <strong>1500</strong> data with columns <strong>(Text,Labels)</strong> where Text is the news article of <strong>Nepali Language</strong> and Label is its genre(Health, World,Tourism, Weather) and so on.</p> <p>I am using <a href="https://spacy.io/usa...
https://stackoverflow.com/questions/62278996/text-classification-of-news-articles-using-spacy
Question: <p>I am working with some text processing using a series of sklearn classifiers. In an <a href="http://blog.chapagain.com.np/machine-learning-sentiment-analysis-text-classification-using-python-nltk/" rel="nofollow noreferrer">example</a> I found on the internet, I have noticed that the input of the classifie...
https://stackoverflow.com/questions/56426352/text-classification-raw-dictionary-input-and-text-vectorization
Question: <p>Are there any implementations of Attention-based RNN for text classification? (in theano, Karas,....)? I found some implementations of this model but they are used more often for the text generation purposes.</p> Answer: <p>You can combine the information from:</p> <p><a href="https://github.com/Microsof...
https://stackoverflow.com/questions/42905106/attention-based-recurrent-neural-network-for-text-classification
Question: <p>We know that BERT has a maximum length limit of tokens = 512. So if an article has a length of much bigger than 512, such as 10000 tokens in text, how can BERT be used?</p> Answer: <p>You basically have three options:</p> <ol> <li>You can cut the longer texts off and only use the first 512 tokens. The ori...
https://stackoverflow.com/questions/58636587/how-can-i-use-bert-for-long-text-classification
Question: <p>I have trying to import dataset into AutoML NL Text Classification. However, the Ui gave me an error of Invalid row in CSV file , Error details: Error detected: "FILE_TYPE_NOT_SUPPORTED"</p> <p>I am uploading the csv file, what should I do?</p> Answer: <p>Please make sure there is no hidden quotes in yo...
https://stackoverflow.com/questions/52319164/dataset-import-error-for-automl-text-classification
Question: <p>I have a labelled data-set comprising of text segments and corresponding labels. Each label consists of three parts, and there can be multiple or zero labels assigned to a given text segment. </p> <pre><code>Sample Data is given below: text segment action performed ...
https://stackoverflow.com/questions/59227070/text-classification-problem-name-and-approach-of-this-type-of-classification
Question: <p>I am trying to use <code>LogisticRegression</code> for text classification. I am using <code>FeatureUnion</code> for the features of the <code>DataFrame</code> and then <code>cross_val_score</code> to test the accuracy of the classifier. However, I don't know how to include the feature with the free text, ...
https://stackoverflow.com/questions/53468055/text-classification-for-logistic-regression-with-pipelines
Question: <p>I'm looking for a really good tutorial on machine learning for text classification perhaps using Support vector machine (SVM) or other appropriate technology for large-scale supervised text classification. If there isn't a great tutorial, can anyone give me pointers to how a beginner should get started and...
https://stackoverflow.com/questions/20772876/svm-for-text-classification-tutorial-on-machine-learning-how-do-i-get-started
Question: <p>Would there be “dilution” of accuracy if I train the same text classification model with multiple training datasets? For example, my end users would be providing (uploading) their own tagged CSVs to train the model and use the trained model in the future. The contexts of datasets would be different - L&amp...
https://stackoverflow.com/questions/70750444/text-classification-multiple-training-datasets
Question: <p>There's <a href="http://www.cs.indiana.edu/~mkorayem/paper/survey_Arabic.pdf" rel="nofollow">this</a> article about sentiment analysis of Arabic. </p> <p>In the beginning of page 5 it says that:</p> <blockquote> <p>"Experiments also show that stemming words before feature extraction and classification ...
https://stackoverflow.com/questions/21294694/text-classification-using-stemmer-degrades-results
Question: <p>I want to do text classification in Python where I have a df with 3 columns: scenario, text and label. The label depends on the column text but also on the column scenario. There are 6 different scenarios.</p> <p>Would it be correct to make a new column where I would merge columns scenario and text into on...
https://stackoverflow.com/questions/77015193/multi-class-text-classification-where-classification-depends-on-other-columns-be
Question: <p>I am looking for examples that show how to plot decision boundaries for text classification. I know about some of the examples in the sklearn documentation, but how do I apply them to text data?</p> <p>I am not even sure, what to plot. Can a decision boundary be plotted for this?</p> <p>I was thinking of...
https://stackoverflow.com/questions/40639316/plot-decision-boundary-for-text-classification
Question: <p>I am trying to perform a text classification using spacy v3.</p> <p>I am a bit confused with CLI approach. However, following the examples in the spacy project repo <a href="https://github.com/explosion/projects/tree/v3/tutorials" rel="nofollow noreferrer">HERE</a>.</p> <p>I downloaded test data right <a h...
https://stackoverflow.com/questions/72256559/text-classification-in-spacy-v3
Question: <p>I'm doing text classification task I faced a problem. I've already selected the 1000 best feature collection using bag-of-words approach. Now I want use another features based on Part-of-Speech, average word length etc. After I want to combine these features together. How can I achieve it I'm using Pytho...
https://stackoverflow.com/questions/41419780/combine-different-types-of-features-text-classification
Question: <h2>Subject</h2> <p>Hello. I wanna implement text classification feature using <strong>Tensorflow.js in <code>NodeJS</code></strong>. <br/> Its job will be to match a string with some pre-defined topics.</p> <h2>Examples:</h2> <p><strong>Input</strong>: <em><code>String</code></em>: "My dog loves walking o...
https://stackoverflow.com/questions/51698131/tensorflowjs-text-string-classification
Question: <p>I'm trying to do some text classification and understand which are the most informative feature the model uses.</p> <p>I get the Accuracy of the model but when it comes to understand the feature_names it's shows and empty row '' (accuracy: 0.38405797101449274 Top 10 features used to predict: Class 1 best: ...
https://stackoverflow.com/questions/73539045/text-classification-and-most-informative-features
Question: <p>I am doing a project about Neural Machine Translation. In the data processing step, is it necessary to padding after the sentences so that they are of equal length?</p> Answer:
https://stackoverflow.com/questions/74148090/neural-machine-translation
Question: <p>When doing machine translation, if you segment words, such as using BPE, how big is the processed vocabulary?</p> Answer: <p>The BPE algorithm starts with a list of characters in the data and iteratively merges the most frequent symbol pairs. If the algorithm would not have a stopping criterion, you would...
https://stackoverflow.com/questions/64906445/vocabulary-scale-of-machine-translation
Question: <p>I am using python 2.7 &amp; django 1.7.</p> <p>When I use <a href="https://translate.google.com/toolkit/" rel="nofollow">Google Translator Toolkit</a> to machine translate my .po files to another language (English to German), there are many errors due to the use of different django template variables in m...
https://stackoverflow.com/questions/33403481/google-translator-toolkit-machine-translation-issues
Question: <p>I am interested in trying to make a machine translation for language accents and is curious for methods avaialable to collect data or how to make your own corpus with unlimited resource. Any good reference i could refer to or ideas?</p> Answer: <p>There are lots of open corpora you may wish to look at, ma...
https://stackoverflow.com/questions/64023394/collecting-data-for-machine-translation
Question: <p>We're looking for an open source Machine Translation Engine that could be incorporated into our localization workflow. We're looking at the options below:</p> <ol> <li><a href="http://www.statmt.org/moses/">Moses</a> (C++)</li> <li><a href="http://www.computing.dcu.ie/~mforcada/fosmt.html">Joshua</a> (Jav...
https://stackoverflow.com/questions/11302342/open-source-machine-translation-engines
Question: <p>I am going through <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention#training" rel="nofollow noreferrer">Tensorflow's tutorial</a> on Neural Machine Translation using Attention mechanism.</p> <p>It has the following code for the Decoder :</p> <pre><code>class Decoder(tf.keras.Model): ...
https://stackoverflow.com/questions/66205290/tensorflow-decoder-for-machine-translation
Question: <p>Google started “Google Neural Machine Translation” system in 2016 and improved the efficiency of translation of some languages tremendously. These languages include German, French, Spanish, Portuguese, Chinese, Japanese, Turkish and Korean; as they said.</p> <p>However Dialogflow supports all of these lan...
https://stackoverflow.com/questions/47414003/dialogflow-language-coverage-and-google-neural-machine-translation
Question: <p>There's a lot of tutorials online that uses raw text affix with arcane syntax to indicate document boundary and accessed through Huggingface <code>datasets.Dataset</code> object through the <code>text</code> key. E.g.</p> <pre><code>from datasets import load_dataset dataset_name = &quot;mlabonne/guanaco-l...
https://stackoverflow.com/questions/78156752/how-to-fine-tune-a-mistral-7b-model-for-machine-translation
Question: <p>I have written the following code with the phrase extraction algorithm for SMT.</p> <p><a href="https://github.com/alvations/nltk/blob/develop/nltk/align/phrase_based.py" rel="noreferrer">GitHub</a></p> <pre><code># -*- coding: utf-8 -*- def phrase_extraction(srctext, trgtext, alignment): """ Ph...
https://stackoverflow.com/questions/25109001/phrase-extraction-algorithm-for-statistical-machine-translation
Question: <p>I have seen many people working on Neural Machine Translation. Usually, they represent their sentence between <code>&lt;BOS&gt;&lt;EOS&gt;</code>, <code>&lt;START&gt;&lt;END&gt;</code>, etc. tags, before training the network. Of course it's a logical solution to specify the start and end of sentences, but ...
https://stackoverflow.com/questions/66294861/sentence-indicating-in-neural-machine-translation-tasks
Question: <p>It seems there have been some changes in the usage of the Machine Translation service from within a Node Red flow. There was the capability to configure from within the node from which into which other language to translate. This has been changed. Can you help me in understanding where to set exactly this ...
https://stackoverflow.com/questions/31006912/watson-machine-translation-in-node-red-flow
Question: <p>Asiya is the machine translation evaluation toolkit to score machine translation outputs (<a href="http://asiya.lsi.upc.edu/" rel="nofollow">http://asiya.lsi.upc.edu/</a>). It is largely written in Perl.</p> <p><strong>How do I use Asiya to perform BLEU metrics?</strong></p> <p>I have followed the youtub...
https://stackoverflow.com/questions/30011056/how-to-use-basic-bleu-score-in-asiya-machine-translation-evaluation-toolkit
Question: <p>In the past, my company has used human, professional translators to translate our software from English into some 13 languages. It's expensive but the quality is high.</p> <p>The application we're translating contains industry jargon. It also contains a lot of sentence fragments and single words which, ou...
https://stackoverflow.com/questions/26308109/using-existing-human-translations-to-aid-machine-translation-to-a-new-language
Question: <p>I know that there are various metrics for measuring the quality of machine translation systems, for example:</p> <ul> <li>Bleu</li> <li>METEOR</li> <li>Lepor</li> </ul> <p>Are there somewhere in the public domain metric results for popular translation systems? For example, such as:</p> <ul> <li>Google tran...
https://stackoverflow.com/questions/58624033/how-to-find-out-the-quality-of-machine-translation-systems
Question: <p>I'm working on a project to generate questions from sentences. Right now, I'm at a point where I can generate questions like: "Angela Merkel is the chancelor of Germany." -> "Angela Merkel is who?"</p> <p>Now, of course, I want the questions to look like "Who is...?" instead. Is there any easy way to do t...
https://stackoverflow.com/questions/11122473/english-query-generation-through-machine-translation-systems
Question: <p>I am cleaning my data to get pairs of text for converting from language X to Y for machine translation</p> <pre><code> [['\ufeffMensahe di Pasco di Gobernador di Aruba 2019', 'Governor’s Christmas speech 2019'], ['Gobernador di Aruba Sr. Alfonso Boekhoudt a duna su mensahe di Pasco riba 24 december ...
https://stackoverflow.com/questions/65170091/cleaning-text-data-for-neural-machine-translation
Question: <p>I would like to know what is the main purpose of parsing a sentence for example we get all the POS-tag of the sentence in training machine translation? I thought we just need to tokenize the sentence and then feed it into neural network to train? What is the purpose of having the POS tag and how can it be ...
https://stackoverflow.com/questions/54757820/what-is-role-of-parserpos-tag-dependecency-in-machine-translation
Question: <p>Can anyone explain a best method to handle unknown words in <strong>Neural machine translation</strong> instead of removing it and to know how google translate is handling names while the sentence is getting translate between any two languages ?</p> <p>I'd really appreciate your response...Thanks!</p> An...
https://stackoverflow.com/questions/55281727/how-to-handle-names-unknown-words-in-neural-machine-translation
Question: <p>The <code>mT5</code> model is pretrained on the mC4 corpus, covering 101 languages:</p> <blockquote> <p>Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bulgarian, Burmese, Catalan, Cebuano, Chichewa, Chinese, Corsican, Czech, Danish, Dutch, English, Esperanto, Esto...
https://stackoverflow.com/questions/76040850/can-mt5-model-on-huggingface-be-used-for-machine-translation
Question: <p>Just curious how people usually deal with punctuation in machine translation. </p> <p>For example, from language A to B we might have:</p> <pre><code>A: a b c d e f g B: x y z, u v w </code></pre> <p>I am wondering how do we deal with the comma in language B? Say if we 're using seq2seq model, shall we ...
https://stackoverflow.com/questions/46290238/how-to-deal-with-punctuations-in-machine-translation
Question: <p>I'm going to implement a translator based on NMT(Neural Machine Translation). In here I hope to use only monolingual corpora without using parallel corpus data for my dataset. Is it possible to train the model using only monolingual corpora data? I'm grateful if someone can share your idea regarding this.<...
https://stackoverflow.com/questions/59099391/can-we-use-generative-adversarial-network-for-neural-machine-translation
Question: <p>I'm trying to build a Neural Machine Translation model that translates Latex-code into English. An example for this would be: "\frac{1^{n}}{12}" -> "One to the power of n divided by 12". The problem is that I don't have nearly enough labeled training data to produce a good result.</p> <p>Is there a way to...
https://stackoverflow.com/questions/50199395/neural-machine-translation-from-latex-to-english-without-sufficient-training-dat
Question: <p>In Weblate it is easy to add terms to glossaries. I was wondering if these glossaries might be "sent" to any of the machine translation services, to increase the quality of the machine translations. Or are they purely to help the human translators?</p> Answer: <p>Currently, there is no such integration - ...
https://stackoverflow.com/questions/59957175/do-glossaries-in-weblate-have-any-effect-on-machine-translations
Question: <p>I am interested in machine translation and more specific I would like to examine the similarity between two strings. I would like to know if there are deep learning methods for text feature extraction. I already tried the famous statistics methods like cosine similarity, Levenstein distance, word frequency...
https://stackoverflow.com/questions/50435118/there-are-deep-learning-methods-for-string-similarity-in-machine-translation
Question: <p>I'm starting up looking into doing some machine translation of search queries, and have been trying to think of different ways to rate my translation system between iterations and against other systems. The first thing that comes to mind is getting translations of a set of search terms from mturk from a bu...
https://stackoverflow.com/questions/8510762/whats-a-good-machine-translation-metric-or-gold-set
Question: <p>In PyTorch, I have written a dataset loading class for loading 2 text files as source and targets, for neural machine translation purpose. Each file has 93577946 lines, and each of them allocates 8GB memory on Hard Disc.</p> <p>The class is as the following:</p> <pre><code>class LoadUniModal(Dataset): ...
https://stackoverflow.com/questions/49338649/loading-huge-text-files-for-neural-machine-translation-with-pytorch
Question: <p>I'm interested in learning more about Machine Translation. While I have some very interesting books on the matter, I'd like to see some real world applications of MT's theories.</p> <p>I've found a couple open source projects just by searching around:</p> <p><a href="http://www.apertium.org/">Apertium</...
https://stackoverflow.com/questions/4456181/what-are-some-examples-of-machine-translation-applications-libraries-currently-b
Question: <p>I'm trying to find a good high level explanation of how statistical machine translation works. That is, supposing I have a corpus of non-aligned English, French and German texts, how could I use that to translate any sentence from one language to another ? It's not that I'm looking to build a Google Trans...
https://stackoverflow.com/questions/5815252/whats-a-good-explanation-of-statistical-machine-translation
Question: <p>I am learning Neural machine translation from this tutorial <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention#restore_the_latest_checkpoint_and_test" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/text/nmt_with_attention#restore_the_latest_checkpoint_and_test</a></p> <p>...
https://stackoverflow.com/questions/67282469/how-to-find-train-losses-and-val-losses-in-tensorflow-neural-machine-translatio
Question: <p>I am learning Neural machine translation from this tutorial <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention#restore_the_latest_checkpoint_and_test" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/text/nmt_with_attention#restore_the_latest_checkpoint_and_test</a></p> <p>...
https://stackoverflow.com/questions/67276646/how-checkpoint-restore-works-in-tensorflow-neural-machine-translation-with-at
Question: <p>I'm trying to train a language model for machine translation between a low-resource language and Portuguese using Tensorflow. unfortunately, I'm getting the following error:</p> <pre><code>PS C:\Users\myuser\PycharmProjects\teste&gt; python .\tensorflow_model.py 2024-08-23 21:29:50.83964...
https://stackoverflow.com/questions/78911175/a-language-model-for-machine-translation-between-a-low-resource-language-and-por
Question: <p>In order to develop a translation system for a constructed language, I am looking for a method that is easy to implement. I turn quite naturally to algorithms based on rules encoded by an "expert".</p> <p>Thus, I am looking for references (codes, explanatory documents...) about naive translation algorithm...
https://stackoverflow.com/questions/60342861/naive-rule-based-machine-translation
Question: <p>Recently, I’ve been thinking a lot about what to code. I thought about projects that enhance my skill in programming and general problem solving. Also, I wanted something that has an actual purpose. Honestly, I’m interested in building a translator. But not one for programming but one for human languages. ...
https://stackoverflow.com/questions/53972928/machine-translation-possible-approaches
Question: <p>I'm working on a transformer for seq2seq translation that has the typical encoder-decoder structure. I want to include examples of similar sentences and their translations in the prompt (few-shot) but I could only find guides that just translate one sentence to another without other context. Are there any ...
https://stackoverflow.com/questions/76299944/machine-translation-transformer-with-context