text stringlengths 81 47k | source stringlengths 59 147 |
|---|---|
Question: <p>I find it straightforward to deploy simple Machine Learning models on AzureML after training, as we can serialize the trained model into a single .pkl file, for example. However, for Neural Machine Translation models, especially when fine-tuning pre-trained models, we end up with up to eleven files. These ... | https://stackoverflow.com/questions/78095214/how-to-deploy-neural-machine-translation-checkpoints-on-azure-as-endpoints-and-m |
Question: <p>Is there any API (like google translation api) in PHP which allows to translate HTML blocks and translate only text out of the html ?</p>
Answer: <p>Microsoft's translation API will translate while maintaining HTML tags.</p>
<p>The API is documented <a href="http://www.microsofttranslator.com/dev/" rel="... | https://stackoverflow.com/questions/2305254/machine-translation-of-html-blocks |
Question: <p>I am trying to play around with the Fairseq machine translation model using</p>
<pre><code>en2de = torch.hub.load('pytorch/fairseq', 'transformer.wmt19.en-de',
checkpoint_file='model1.pt:model2.pt:model3.pt:model4.pt',
tokenizer='moses', bpe='fastbpe')
</code><... | https://stackoverflow.com/questions/76359809/what-are-the-return-values-from-fairseq-wmt19-machine-translation-models-gener |
Question: <p>I am learning about machine translation tasks with transformers. To my knowledge, the transformers model predicts the next word of the target sentence based on the previous words of the source sentence.
However, in the MarianMT model (or T5), I find its tokenizer does not have a start of sentence token (&l... | https://stackoverflow.com/questions/73103907/how-do-we-generate-the-first-target-words-in-machine-translation |
Question: <p>I read a paper about machine translation, and it uses projection layer.
The projection layer is explained as follows: "Additional projection aims to reduce the dimensionality of the encoder output representations to match the decoder stack dimension."</p>
<p>Does anyone know this architecture or how to im... | https://stackoverflow.com/questions/60110462/what-is-projection-layer-in-the-context-of-neural-machine-translation-using-rnn |
Question: <p>There is one question when I learned the example <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention" rel="nofollow noreferrer">"Neural machine translation with attention"</a>.</p>
<pre class="lang-py prettyprint-override"><code>class Decoder(tf.keras.Model):
def __init__(self, vocab_s... | https://stackoverflow.com/questions/58618837/input-to-attention-in-tensorflow-2-0-tutorial-on-neural-machine-translation-wit |
Question: <p>I am attempting to perform machine translation using a transformer model in a manner almost identical to the original article. While the model works reasonably well, it requires greater computational resources. To address this, I ran the model on a computer with 8 GPU processors, but I lack experience in t... | https://stackoverflow.com/questions/78774602/how-to-parallelize-transformer-model-for-machine-translation-on-8-gpus |
Question: <p>I would want to use my own data to train the model for a <a href="https://www.tensorflow.org/beta/tutorials/text/transformer" rel="nofollow noreferrer">machine translation system using Transformers</a>. There are a set of datasets already available in TFDS (Tensorflow datasets) and there is also option to ... | https://stackoverflow.com/questions/57099339/tensorflow-creating-a-custom-text-dataset-to-use-in-machine-translation |
Question: <p>I am trying to implement an Attention-based Neural Machine Translation architecture in Keras. I have encoder (Extends Model class), attention(layer class) and decoder(Model class) classes. Finally, I have a "combine" class (Extends Model) that combines all these models.</p>
<p>Here is the issue ... | https://stackoverflow.com/questions/62906248/no-gradients-provided-for-any-variable-attention-based-neural-machine-translati |
Question: <p>I have a lot of emails in french language and I want to convert it into German language.</p>
<p>Now for the same I need Machine Translation Model, but not sure how to collect data for creating the model.</p>
<p>It's ok to have a low accuracy in the starting but I am not finding a way to start collecting ... | https://stackoverflow.com/questions/56971308/what-are-the-methods-to-collect-data-for-building-machine-translation-model-fre |
Question: <p>I am trying to do sentiment analysis for non english languages like japenese, chinese, german etc. I want to know if any Machine translator available for translating documents in these languages to english. I am working on JAVA so I should be able to call the API or tool.
I have used google translator API... | https://stackoverflow.com/questions/4482758/machine-translation-for-multilingual-sentiment-analysis |
Question: <p>I am working on seq2seq NMT for french to english translation. In the inference model I am getting cardinality error.</p>
<blockquote>
<p>ValueError: Data cardinality is ambiguous:<br />
x sizes: 1, 5, 5<br />
Please provide data which shares the same first dimension.</p>
</blockquote>
<pre class="lang-py ... | https://stackoverflow.com/questions/65879201/neural-machine-translation-seq2seq-encoder-decoder |
Question: <p><code>Moses</code> is a software to build machine translation models. And <code>KenLM</code> is the defacto language model software that moses uses.</p>
<p>I have a textfile with 16GB of text and i use it to build a language model as such:</p>
<pre><code>bin/lmplz -o 5 <text > text.arpa
</code></pr... | https://stackoverflow.com/questions/29869607/how-to-tune-a-machine-translation-model-with-huge-language-model |
Question: <p>From <a href="https://huggingface.co/Unbabel/unite-mup" rel="nofollow noreferrer">https://huggingface.co/Unbabel/unite-mup</a>, there's a model that comes from the <a href="https://aclanthology.org/2022.acl-long.558/" rel="nofollow noreferrer">UniTE: Unified Translation Evaluation</a> paper. The usage was ... | https://stackoverflow.com/questions/76953227/how-to-use-locally-saved-united-mup-model-in-unbabel-comet-model-for-machine-tra |
Question: <p>When decoding / translating a test dataset after training on the base Transformer model (Vaswani et. al.), I sometimes see this token "unk" in the ouput.</p>
<p>"unk" here refers to an unknown token, but my question is what is the reasoning behind that? Based on <a href="https://nlp.sta... | https://stackoverflow.com/questions/69595863/machine-translation-transformer-output-unknown-tokens |
Question: <p>My Multilingual App Toolkit is throwing an error when trying to connect to my azure subscription and generate machine translations.</p>
<p>A couple months ago I successfully set up the new Multilingual App Toolkit to use the Translator Text API in the Azure Market Place on my Azure account. I did this fo... | https://stackoverflow.com/questions/46584891/why-is-the-multilingual-app-toolkit-not-generating-machine-translations |
Question: <p>im trying to install a protocol-buffer known as SentencePiece too, to alleviate the open vocabulary problems in neural machine translation .</p>
<p>I used this command as suggested on github documentation :</p>
<p>sudo apt-get install cmake build-essential pkg-config libgoogle-perftools-dev</p>
<p>it gi... | https://stackoverflow.com/questions/55358694/trouble-installing-a-protocol-buffer-known-as-sentencepiece-too-to-alleviate-th |
Question: <p>Could you guys recommend some evaluation or metrics about machine learning for translation: for example Japanese to English et al. If possible, could you tell me some papers about metrics. I am a new one to translation. Thanks! </p>
Answer: <p>Despite continuous critics and debates starting with <a href="... | https://stackoverflow.com/questions/46187542/metrics-or-evaluation-about-machine-learning-translation |
Question: <p>I've been trying train a model for machine translation. It worked pretty fine when I trained it for 10 epochs at a time and tested it. But when I try to train it for 1 epoch at a time, save and load it to continue from where I left earlier it gives some errors.</p>
<pre><code>import tensorflow as tf
import... | https://stackoverflow.com/questions/76412332/save-load-and-retrain-a-tensorflow-model-for-machine-translation |
Question: <p>I got a big problem. For my bachelor thesis I have to make a machine tranlation model with BERT.
But I am not getting anywhere right now.
Do you know a documentation or something that can help me here?
I have read some papers in that direction but maybe there is a documentation or tutorial that can help... | https://stackoverflow.com/questions/61523829/how-can-i-use-bert-fo-machine-translation |
Question: <p>I have adapted the base transformer model, for my corpus of aligned Arabic-English sentences. As such the model has trained for 40 epochs and accuracy (SparseCategoricalAccuracy) is improving by a factor of 0.0004 for each epoch.
To achieve good results, my estimate is to attain final accuracy anywhere aro... | https://stackoverflow.com/questions/60398105/transformers-architecture-for-machine-translation |
Question: <p>I've so far worked with left to right languages and NLTK worked fine for tokenization. But while working on a research paper focused on several languages including RTL languages, the normal procedure has been giving me completely inaccurate translations. Could anyone please let me know what is the norm in ... | https://stackoverflow.com/questions/76183491/seq2seq-neural-machine-translation-step-for-aligning-right-to-left-languages-wit |
Question: <p>I need to create a Hindi to English translation system using MOSES. I have got a parallel corpora containing about 10000 Hindi sentences and corresponding English translations. I followed the method described in the <a href="http://www.statmt.org/moses/?n=Moses.Baseline" rel="nofollow">Baseline system crea... | https://stackoverflow.com/questions/27669446/statistical-machine-translation-from-hindi-to-english-using-moses |
Question: <p>I am using a new Google's Document Translation API that is still in preview. After it translate the document, translated document have <code>Machine Translated by Google</code> text at the top of each page. How can I disable adding that text?</p>
Answer: <p>It's not possible to do natively via Google Clou... | https://stackoverflow.com/questions/67645265/remove-machine-translated-by-google |
Question: <p>I'm aware that there are many different methods like BLEU, NIST, METEOR etc. They all have their pros and cons, and their effectiveness differs from corpus to corpus. I'm interested in real-time translation, so that two people could have a conversation by typing out a couple sentences at a time and having ... | https://stackoverflow.com/questions/43943372/best-evaluation-method-for-real-time-machine-translation |
Question: <p>I am using google ajax based translation API like in the below example.</p>
<pre><code>google.load("language", "1");
function initialize() {
var text = document.getElementById("text").innerHTML;
google.language.detect(text, function(result) {
if (!result.error && result.l... | https://stackoverflow.com/questions/2887980/losing-leading-trailing-space-when-translated-using-google-machine-translation |
Question: <p>Hi I am learning Natural Language processing using NLTK. I am trying to implement babelize_shell() example of the book. What I am doing is executing babelize_shell(), after that I am entering my string, followed by german as stated in the book, followed by run.</p>
<p>The error I am getting is:</p>
<pre>... | https://stackoverflow.com/questions/12267544/machine-translation-using-babelize-shell-in-nltk |
Question: <p>I want to tie weights of the <code>embedding</code> layer and the <code>next_word</code> prediction layer of the decoder. The embedding dimension is set to 300 and the hidden size of the decoder is set to 600. Vocabulary size of the target language in NMT is 50000, so embedding weight dimension is <code>50... | https://stackoverflow.com/questions/49299609/tying-weights-in-neural-machine-translation |
Question: <p>I'm currently working on a project design where I will create a program/model to translate my native dialect to English, I'm asking is there any books or anything that can you recommend to me in creating my project.</p>
Answer: <p>On the NLP side of things there's this course: <a href="https://www.youtube... | https://stackoverflow.com/questions/69988135/creating-a-neural-machine-translation-basics |
Question: <p>Lets say I have the following very simplified training and testing observations. </p>
<p><strong>Training</strong></p>
<pre><code>input: her favourite dog was a huskey and her favourite cat was a leopard
output: dog=huskey, cat=leopard
input: her favourite dog was a beagle and her favourite cat was a li... | https://stackoverflow.com/questions/42947128/machine-learning-for-natural-language-processing-custom-translation |
Question: <p>There are many pre-trained machine translations models available, but it seems like they all need to be run with the dictionary they are trained with. The dictionaries sometimes can have less coverage for my data set (even BPE based ones), and sometimes miss important words as unknowns. What are the best w... | https://stackoverflow.com/questions/58346657/can-i-customize-the-dictionary-of-a-pre-trained-transformer-neural-machine-trans |
Question: <p>I'm not referring to <a href="https://arxiv.org/abs/1904.09675" rel="nofollow noreferrer">BERTScore</a>. BERTScore uses token-level word embeddings, you compute pairwise cosine similarity of word embeddings and obtain scores using greedy matching.</p>
<p>I'm referring to <a href="https://arxiv.org/abs/1908... | https://stackoverflow.com/questions/79381185/is-it-possible-to-evaluate-machine-translations-using-sentence-bert |
Question: <p>I have been processing this thought in my head for a long time now. So in NMT, We pass in the text in the source language in the encoder seq2seq stage and the language in the target language in the decoder seq2seq stage and the system learns the conditional probabilities for each word occurring with its ta... | https://stackoverflow.com/questions/58445247/a-variation-on-neural-machine-translation |
Question: <p>How to change "<strong>remote character set</strong>" in Translation of a putty by remote machine? </p>
<p>Its by default set to ISO, so when I run my application, I get weird characters. It can be changed by host machine.</p>
<p>But can I change the putty terminal settings from remote machine via some c... | https://stackoverflow.com/questions/23336829/change-putty-translation-to-utf-8-by-remote-machine |
Question: <p>I'm trying to train an RNN for machine translation, using LSTM. However,the BLEU at the first batch decreases to zero and stay at this level during all the training. At the same time loss is drastically decreasing. What may be the problem?</p>
<p>**the code: **</p>
<pre><code>class SimpleRNNTranslator(nn.M... | https://stackoverflow.com/questions/75139358/loss-is-drastically-decreasing-whereas-bleu-score-stays-at-zero-during-training |
Question: <p>I'm trying to train a fairly standard machine translation transformer model using PyTorch. It's based on the "Attention is All You Need" paper. When I ran it on my PC with standard hyperparameters and a batch size of 128 segments (pairs of source and target language sentences), it worked fine but... | https://stackoverflow.com/questions/78645618/how-can-i-optimize-machine-translation-model-training-to-overcome-gpu-memory-ove |
Question: <p>Im stepping through the code here: <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/text/nmt_with_attention</a>
as a learning method and I am confused as to when the loss function is called and what is passed. I added two ... | https://stackoverflow.com/questions/65028889/tensorflow-neural-machine-translation-example-loss-function |
Question: <p>I have trained a EncoderDecoderModel from huggging face to do english-German translation task. I tried to overfit a small dataset (100 parallel sentences), and use <code>model.generate()</code> then <code>tokenizer.decode()</code> to perform the translation. However, the output seems to be proper German se... | https://stackoverflow.com/questions/65167131/transformers-how-to-use-hugging-face-encoderdecodermodel-to-do-machine-translat |
Question: <p>Does anyone know how to replace GIZA++ in Moses with Anymalign which is obtained from <a href="https://anymalign.limsi.fr/" rel="nofollow">here</a> </p>
<p>In fact, there is 9 <a href="http://www.statmt.org/moses/?n=FactoredTraining.HomePage" rel="nofollow">steps</a> to using Moses, I want to start the st... | https://stackoverflow.com/questions/36072799/moses-machine-translation-using-moses-with-anymalign |
Question: <p>Node-Red on bluemix provides a Watson Machine Translation node. Bluemix recently changed the translation APIs that this uses, releasing a new Watson Language Translation API. (see <a href="https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/language-translation/migrating.shtml" rel="nofoll... | https://stackoverflow.com/questions/31380846/translation-example-not-working-anymore-in-node-red-and-bluemix |
Question: <p>On my system i have changed mgstr in <code>django.po</code> and compiled it and i get the translation as expected.Now my question is should i run <code>manage.py compilemessages</code> even on the production machine or checkin the binary file(<code>django.mo</code>) so that when it is checked out on prod m... | https://stackoverflow.com/questions/23384847/django-compiling-translation-string-in-different-machines |
Question: <p>I am trying to understanding how to implement a seq-to-seq model with attention from this <a href="https://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html?highlight=attention" rel="nofollow noreferrer">website</a>.</p>
<p>My question: Is nn.embedding just returns some IDs for each word... | https://stackoverflow.com/questions/64675228/embedding-layer-in-neural-machine-translation-with-attention |
Question: <p>I am trying to understand Bahdanaus attention using the following tutorial:
<a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/text/nmt_with_attention</a></p>
<p>The calculation is the following:</p>
<pre><code>self.attentio... | https://stackoverflow.com/questions/63268582/bahdanaus-attention-in-neural-machine-translation-with-attention |
Question: <p>I'm using recurrent neural networks to train a model to translate sample english sentences such as "fetch all employee data" into sql such as "SELECT * FROM EMPLOYEE". Right now my program takes 100 epochs of training time but translates all the inputs the same. Required libraries are tensorflow and keras.... | https://stackoverflow.com/questions/49199943/not-able-to-generate-correct-english-to-sql-translations-using-lstm-for-machine |
Question: <p>I see that people often remove special characters like () "" : [] from data before training translation machine. Could you explain for me the benefits of doing so?</p>
Answer: <p>Date clean-up or pre-processing is performed so that algorithms could focus on important, linguistically meaningful &... | https://stackoverflow.com/questions/64181801/why-special-characters-like-are-often-removed-from-data-before-traini |
Question: <p>Is there any documentation of the moses.ini format for Moses? Running moses at the command line without arguments returns available feature names but not their available arguments. Additionally, the structure of the .ini file is not specified in the manual that I can see.</p>
Answer: <p>The main idea is t... | https://stackoverflow.com/questions/30033707/documentation-of-moses-statistical-machine-translation-mose-ini-file-format |
Question: <p>My goal is to create a custom translation engine for the financial domain, language pair CHT - EN and CHS - EN. I have respective dictionaries and aligned segments ready to import into a custom engine and train the engine.</p>
<p>If I understand the documentation (<a href="https://www.ibm.com/watson/devel... | https://stackoverflow.com/questions/39120127/can-i-create-a-custom-domain-with-the-ibm-watson-machine-translation-api |
Question: <p>this is my first time creating a FFN to train it to translate French to English using word prediction:
Input are two arrays of size <em>2 x window_size + 1</em> from source language and <em>window_size</em> target language. And the label of size 1</p>
<p>For e.g for window_size = 2:</p>
<pre><code>["j... | https://stackoverflow.com/questions/72439789/machine-translation-ffn-dimension-problem-due-to-window-size |
Question: <p><strong>Problem Summary</strong></p>
<p>In the following example, my NMT model has high loss because it correctly predicts <code>target_input</code> instead of <code>target_output</code>.</p>
<pre><code>Targetin : 1 3 3 3 3 6 6 6 9 7 7 7 4 4 4 4 4 9 9 10 10 10 3 3 10 10 3 10 3 3 1... | https://stackoverflow.com/questions/48256372/neural-machine-translation-model-predictions-are-off-by-one |
Question: <p>I am currently using tensorflow and following tutorial <a href="https://www.tensorflow.org/text/tutorials/nmt_with_attention" rel="nofollow noreferrer">https://www.tensorflow.org/text/tutorials/nmt_with_attention</a>
I am trying to make a Korean to English translator by referring to the above document. How... | https://stackoverflow.com/questions/71892574/tensorflow-neural-machine-translation-with-attention-graph-execution-error |
Question: <p>I am using Python 3.1 on a Windows 7 machine. Russian is the default system language, and utf-8 is the default encoding.</p>
<p>Looking at the answer to a <a href="https://stackoverflow.com/questions/778096/problem-opening-a-text-document-unicode-error">previous question</a>, I have attempting using the &q... | https://stackoverflow.com/questions/1347791/unicode-error-unicodeescape-codec-cant-decode-bytes-when-writing-windows |
Question: <p>i had build seq2seq translation with keras it is translating between 2 languages </p>
<p>then i saved the whole model as model.h5</p>
<pre><code> model.save('model.h5')
</code></pre>
<p>and then i loaded the <strong>model.h5</strong> in another python script</p>
<pre><code>from keras.models import loa... | https://stackoverflow.com/questions/60394098/how-do-i-predict-my-machine-translation-after-i-loaded-model-5 |
Question: <p>All I need is a way to insert my GenerationConfig into the HuggingFace <code>Seq2Seq</code> Trainer.</p>
<p>I want to enforce <code>facebook/nllb-200-distilled-600M</code> model's predictions to be in Arabic, I am using <code>transformers</code> library.</p>
<p>Here is my Trainer Code</p>
<pre><code>from t... | https://stackoverflow.com/questions/78600144/enforcing-a-prediction-language-for-nllb-machine-translation-model |
Question: <p>I am working on a project to use a pre-trained model and finetune it for customized language translations, for example from English to French. Is it possible to load these models in Tensorflow and run them to see how translations turn out and fine-tune afterward?</p>
Answer: <p>Probably the fastest way to... | https://stackoverflow.com/questions/66862585/can-i-use-bert-or-bart-for-machine-translation |
Question: <p>For example, if I have the words MKIK or "牛逼" (which is artificially created) how can we tell neural networks (transformer model) to keep the same output?</p>
<p>The problem is with using the transformer model on fairseq.</p>
<p>I found fairseq has <code>--replace-unk</code> parameters, but it do... | https://stackoverflow.com/questions/73847435/how-to-predict-unk-token-for-neural-machine-translation |
Question: <p>I try to fine-tune mBART-50 (<a href="https://arxiv.org/pdf/2008.00401" rel="nofollow noreferrer">paper</a>, <a href="https://huggingface.co/facebook/mbart-large-50" rel="nofollow noreferrer">pre-trained model on Hugging Face</a>) for machine translation in the transformers Python library. To test the fine... | https://stackoverflow.com/questions/76191862/how-can-i-fine-tune-mbart-50-for-machine-translation-in-the-transformers-python |
Question: <p>Russian translation produces the following result, is there a NLP function which we can use to concatenate as "Europe's" in the following string?</p>
<p>"Nitzchia Protector Todibo can go to one of Europe ' s top clubs"</p>
Answer: <p>Try detokenizers but because there are rules to proc... | https://stackoverflow.com/questions/77005341/how-to-concatenate-a-split-word-using-nlp-caused-by-tokenizers-after-machine-tra |
Question: <p>I'm primarily interested in popular and widely used compilers, such as gcc. But if things are done differently with different compilers, I'd like to know that, too.</p>
<p>Taking gcc as an example, does it compile a short program written in C directly to <em>machine</em> code, or does it first translate it... | https://stackoverflow.com/questions/845355/do-programming-language-compilers-first-translate-to-assembly-or-directly-to-mac |
Question: <p>I am looking for a translation API that outputs all the candidates and not just single "best" candidate.</p>
<p>All statistical machine translation systems at the last stage score the list of translation candidates and choice the best candidate. I wonder if there is a system like Google translate or Micro... | https://stackoverflow.com/questions/37982632/translation-api-with-candidates |
Question: <p>My code:</p>
<pre><code>import numpy as np
from keras import Input, Model
from keras.layers import LSTM, Dense
input_texts = []
target_texts = []
input_characters = set()
target_characters = set()
with open('catalan.txt', 'r', encoding = 'utf-8') as f:
lines = f.read().split('\n')
for line in lines... | https://stackoverflow.com/questions/60565308/why-does-my-translation-machine-always-output-t |
Question: <p>I am reading <a href="http://www.aclweb.org/anthology/P05-1032" rel="nofollow">this</a> paper and having a difficulty understanding the way word alignments are represented. To be precise, right below section <code>4.1</code>, the authors say the format of the alignment is <code>(i,j)</code> where <code>i</... | https://stackoverflow.com/questions/37982045/what-is-the-format-of-word-alignments-in-machine-translation |
Question: <p>I am trying to understand Attention model using the following tutorial <a href="https://www.tensorflow.org/tutorials/text/nmt_with_attention" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/text/nmt_with_attention</a></p>
<p>In the Decoder section it's written:</p>
<pre><code># x shape after... | https://stackoverflow.com/questions/63272961/output-of-the-embedding-layer-in-decoderneural-machine-translation |
Question: <p>I am trying to use phrase-based machine translation as provided by the Google API (PBMT). </p>
<p>Is it possible to provide Google with my own mappings of terms between languages, thus extending their phrase table? </p>
<p>Thank you!
cheers
zabe</p>
Answer: <p>tl;dr: It's not possible. </p>
<p>The pa... | https://stackoverflow.com/questions/51976180/phrase-based-translation-at-google-api-pbmt |
Question: <p>Google Cloud Translation offers Neural Machine Translation (NMT) and Phrase-Based Machine Translation (PBMT). It is stated that "nmt model is used if the language pair is supported, otherwise the PBMT model is used."(<a href="https://cloud.google.com/translate/docs/advanced/translating-text-v3" r... | https://stackoverflow.com/questions/65388265/google-translate-vs-google-cloud-translate |
Question: <pre><code> .text
.align 2
.global main
.equ val,0x4712 # 16-bit binary code for 0x4712: 0100 0111 0001 0010
# Program code starts now
main:
movi r16,val
movi r17,0
loop: addi r17,r17,1
subi r16,r16,1
... | https://stackoverflow.com/questions/11972320/translating-mips-to-machine-code |
Question: <p>I am paying to use the Google api to translate document and google is adding <code>Machine Translated by Google</code> on each page.</p>
<p>I know this is part of the attribution requirements but if I specify it on my website it should not be required on the generated document.</p>
<pre class="lang-js pret... | https://stackoverflow.com/questions/78653380/remove-machine-translated-by-google-google-api-document-translate |
Question: <p>I recently uploaded a csv and wanted to create a project to analyze the csv with llm.</p>
<p>However, I don't know which RAG to use for RAG through the csv file.</p>
<p>In addition, the resources of the csv file are numbers, not natural language, so it seems too difficult to draw out the performance of RAG... | https://stackoverflow.com/questions/78951491/is-there-a-way-to-implement-multiple-csvs-as-rag |
Question: <p>I am working on a project for a publishing house that involves implementing semantic search across an archive of approximately 50,000 articles, each averaging 15 pages in length. My understanding is that I need to use a Retrieval Augmented Generation (RAG) approach to achieve this.
Here are my specific req... | https://stackoverflow.com/questions/78661577/how-to-implement-retrieval-augmented-generation-rag-for-semantic-search-and-su |
Question: <p>While executing RAG query engine as per the following code</p>
<pre><code>query_engine = RetrieverQueryEngine.from_args(
retriever,llm=AzureOpenAI(api_key='xxxxxxxxxxxxxxx',
azure_endpoint="https://xxxxxxxxxxxxxx/",
engine="openai-gpt35-1106",
temperature=0.1,
api_version... | https://stackoverflow.com/questions/78864925/rag-engine-error-cant-instantiate-abstract-class-basenode |
Question: <p>How to implement vector stores and RAG with OpenAI playground functions json code rule base for ez function loading that is a lot of time very hard to do , this is a proven system to max you code structure that is valid and will load!, just because it is valid does not mean that it will load!!!</p>
<p>rend... | https://stackoverflow.com/questions/78716134/how-to-implement-vector-stores-and-rag-with-open-ai-functions-with-proven-rule-b |
Question: <p>I have three RAG status build with logic. Now my requirement is to create overall RAG over them. There are different department filters applied on three RAG status. Now I want to implement overall RAG on below condition.
Please note - Below - G= Green, A=Amber and R=Red</p>
<p>a. G-G-G = G</p>
<p>b. G-... | https://stackoverflow.com/questions/43907675/creating-overall-rag-status-in-tableau |
Question: <p>I am currently working on a project where I intend to utilize a LLM to provide answers to user inquiries, drawing from a substantial collection of local PDF documents. These documents are subject to daily updates, with approximately 10 new documents being added each day.</p>
<p>Could you suggest the most e... | https://stackoverflow.com/questions/78118204/how-to-implement-rag-with-llms-for-a-large-collection-of-local-pdf-documents |
Question: <p>I am trying to implementing RAG using pgvector/Postgres and stuck on a strange problem where RAG search fails when running programmatically. The raw query works fine on PostgresDB though.</p>
<p>We have two different issues:</p>
<ol>
<li><p>When using the <a href="https://docs.spring.io/spring-ai/reference... | https://stackoverflow.com/questions/79555127/vectorstore-implementation-throws-type-vector-does-not-exist-error-with-custom |
Question: <p>I was implementing RAG on a document with using the LLama2 model but my model is asking questions to itself and answering it to them.</p>
<pre class="lang-py prettyprint-override"><code>llm = LlamaCpp(model_path=model_path,
temperature=0,
max_tokens=2000,
top_p=0.1,
n_ctx=2048,
)
qa_c... | https://stackoverflow.com/questions/79075644/my-llama2-model-is-talking-to-itself-asking-question-and-answering-it-to-them-us |
Question: <p>Hello All I am trying creating a RAG chatbot, that does a POST request when user clicks add. The purpose of the add, is to add the record in the RAG vector database. I can't seem to format the data properly to do, I was able to achieve something similar using python notebook.</p>
<p>Json Format:</p>
<pre><... | https://stackoverflow.com/questions/78921436/trying-to-add-records-in-rag-vector-database-pinecone |
Question: <p>I am implementing RAG on a Gemma-2B-it model using langchain's HuggingFaceEmbeddings and ConversationalRetrievalChain.</p>
<p>When running:</p>
<pre><code>chat_history = []
question = "My prompt"
result = qa.invoke({"question": question, "chat_history": chat_history})
</code>... | https://stackoverflow.com/questions/78199269/conversationalretrievalchain-raising-keyerror |
Question: <p>I'm currently exploring the implementation of Retrieval-Augmented Generation (RAG) for text classification, but I'm facing a lack of comprehensive online resources to guide me through the process.</p>
<p>In this project, the task involves taking a sentence as input and categorizing it into one of three dis... | https://stackoverflow.com/questions/77190366/retrieval-augmented-generation-rag-for-text-classification |
Question: <p>I am new to Semantic Kernel and would like to build an application using RAG (local file implementation). I know this is possible in OpenAI using "KernelMemoryBuilder" and "WithOpenAIDefaults" method. Any help is appreciated.</p>
<p>Thanks,</p>
<p>I have tried below implementations but ... | https://stackoverflow.com/questions/78825096/c-microsoft-semantic-kernel-rag-using-local-files |
Question: <p>I'm trying to implement a simple rag that reads a list of input files and answers to questions based on their content:</p>
<pre><code>documents = SimpleDirectoryReader("/content/Data/").load_data()
llm = LlamaCPP(
model_url='https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolv... | https://stackoverflow.com/questions/77511555/rag-model-not-reading-json-files |
Question: <p>I am working on a Retrieval-Augmented Generation (RAG) system where I input a simple PDF file and expect structured outputs such as the title, summary, publication year, and authors of the research paper. While testing the system, I encountered an issue:</p>
<p>First run: The output was correct and as expe... | https://stackoverflow.com/questions/79201785/issue-with-hallucinated-outputs-in-rag-system-using-langchain-and-chroma-vectors |
Question: <p>I am trying to implement RAG with the GPT-3.5 API. However, my code execution gets stuck while trying to create the retriever. I didn't get this issue on Google Colab but I started getting this issue once I shifted my codebase to my local environment.</p>
<p>Here is the function:</p>
<pre><code>def create_... | https://stackoverflow.com/questions/78793204/unable-to-create-a-vectorstore-retriever-using-chroma |
Question: <p>I'm implementing a Retrieval-Augmented Generation (RAG) system for a chatbot that handles a variety of user queries. While RAG is primarily designed to provide informative responses by retrieving relevant documents and generating responses using a language model (LLM), I want to handle certain types of que... | https://stackoverflow.com/questions/78843382/handling-greet-type-of-questions-without-llm-in-rag |
Question: <p>I'm currently implementing a multi-modal RAG sys leveraging, LLaVa, Chroma & Langchain.</p>
<p>However, I'm having a hard time finding the embeddings function llava uses. Can anybody help me with that? Am I just blind?</p>
<p>Any pointers on how to narrow that down would be much appreciated.</p>
<p>Tha... | https://stackoverflow.com/questions/78333716/how-to-use-llava-embedding-function-multi-modal-rag |
Question: <p>I am trying to implement the code for Python RAG with chat history from:</p>
<p><a href="https://python.langchain.com/docs/expression_language/cookbook/retrieval#with-memory-and-returning-source-documents" rel="nofollow noreferrer">https://python.langchain.com/docs/expression_language/cookbook/retrieval#wi... | https://stackoverflow.com/questions/77303068/python-langchain-rag-example-code-unsupported-operand-types-for-method-and |
Question: <p>I'm building a RAG application using LangChain. It works well with one type of embedding in my database, generating specific code based on context. Now, I want to add support for Q&A. I've implemented Q&A by creating embeddings for various common questions, but sometimes my code generation fails be... | https://stackoverflow.com/questions/78771100/handling-multiple-embedding-types-in-langchain-for-rag-applications |
Question: <p>I'm a bit new to the whole RAG pipeline thing and find myself being a bit lost in the endless possibilities of building one. My goal is to create a script that can transform about 60 anatomical pdfs into a vector store database and use this to answer questions about body parts and return the references to ... | https://stackoverflow.com/questions/78662555/rag-pipeline-help-request |
Question: <p>We are preparing a capstone design for our graduation project, and in that project, we want to implement a RAG chatbot using Langchain, where we want to implement FLARE as an open-source LLM model, but we are having difficulties because the flare library in Langchain is based on OpenAI.</p>
<p>So we are tr... | https://stackoverflow.com/questions/78615556/can-i-use-flare-rag-as-a-substitute-for-another-open-source-llm-that-is-not-base |
Question: <p>I am trying to implement a retrieval-augmented generation (RAG) pipeline using DSPy and want to use my own custom database stored in JSON/JSONL files as the retrieval source.</p>
<p>I see that DSPy provides <code>ColBERTv2</code> for retrieval, but I’m unsure how to configure it to work with my local datas... | https://stackoverflow.com/questions/79440428/how-to-use-dspy-with-a-custom-database-json-jsonl-as-a-retriever-for-rag |
Question: <p>I am trying to implement a conversational RAG using Azure AiSearch and lang chain with conversational history. I am trying to use the</p>
<pre><code>AzureAISearchRetriever from langchain_community.retrievers
</code></pre>
<p>However, the examples in langchain documentation only points us to using defa... | https://stackoverflow.com/questions/78576496/hybrid-search-using-azure-ai-search-and-lang-chain-as-a-retriever |
Question: <p>I struggle understanding what are the pros and cons of each one of these approaches for implementing a RAG using Azure OpenAI with AI Search as source, with Python SDK. Both work well, but option B looks much cleaner. Why should we even bother doing all the steps in option A ourselves? Am I missing somethi... | https://stackoverflow.com/questions/79239258/best-approach-for-rag-using-azure-openai-and-ai-search-with-python-sdk |
Question: <p>I am currently referring to the codelab <a href="https://codelabs.developers.google.com/multimodal-rag-gemini#0" rel="nofollow noreferrer">Build a Q&A App with Multi-Modal RAG using Gemini Pro</a> which uses</p>
<pre><code>from google.colab import auth
auth.authenticate_user()
</code></pre>
<p>to authe... | https://stackoverflow.com/questions/78834087/vertexai-authentication |
Question: <p>I am working on a RAG chatbot which takes .csv financial tables (eg. income statements/balance sheets etc.) of a company in the last 3 quarters, and answers questions based on the provided report context. Each CSV file contains a financial table for a company, with 3 rows representing 3 quarters and column... | https://stackoverflow.com/questions/79491162/feeding-tabular-data-to-chromadb-for-rag |
Question: <p>I am trying to implement a RAG solution using Azure OpenAI and Azure AI Search.</p>
<p>This is my <code>requirements.txt</code> file:</p>
<pre><code>azure-core==1.29.6
azure-common==1.1.28
azure-identity==1.15.0
azure-keyvault-keys==4.8.0
azure-keyvault-secrets==4.7.0
azure-search-documents==11.4.0
openai=... | https://stackoverflow.com/questions/77837392/apiconnectionerror-connection-error-in-langchain-vector-search |
Question: <p>Using Firestore Genkit (Node.js) and GCP Vortex AI, Vortex AI Search, and GCP Cloud storage I am writing a agent that will process some files of code. The files get uploaded to cloud storage since they are unstructured data.</p>
<p>I want to use Vortex AI search as RAG for the agent I am building. I have t... | https://stackoverflow.com/questions/79481102/how-to-sync-update-vector-db-vertex-ai-search-used-as-rag-in-a-agent |
Question: <p>Actually i am building rag chatbot with gradio where the issue is that on first pdf file it give the actual response to that pdf file what the question is asked but if i upload new pdf and ask any question the pdf is loading correctly and its embeddings are also being created correctly but when it goes to ... | https://stackoverflow.com/questions/78825666/rag-chromadb-is-retrieving-the-old-vectors-after-first-attemp-not-on-new-docum |
Question: <p>For those who have integrated the ChromaDB client with the Langchain framework, I am proposing the following approach to implement the Hybrid search (Vector Search + BM25Retriever):</p>
<pre><code>from langchain_chroma import Chroma
import chromadb
from chromadb.config import Settings
from langchain_openai... | https://stackoverflow.com/questions/79477745/bm25retriever-chromadb-hybrid-search-optimization-using-langchain |
Question: <p>I'm working on building a memory-based chat system that utilizes vector retrieval for multiple users across multiple sessions. I'm using LangChain, OpenAI, and ChromaDB in Python.</p>
<p>My current implementation involves integrating LangChain's VectorDBQA with OpenAI for language processing and ChromaDB f... | https://stackoverflow.com/questions/78387076/want-to-generate-memory-based-rag-with-vector-stores-for-storing-documents |
Question: <p>I am working on creating a RAG application using Spring AI and MongoDB for the vector store.</p>
<p>My current entry point/controller is as follows (based heavily on Spring AI's own docs):</p>
<pre><code>
@RestController
public class ChatController {
private final OllamaChatModel chatModel;
private fi... | https://stackoverflow.com/questions/79525963/spring-ai-with-mongodb-vector-store-how-to-retrieve-source-url-for-rag |
Question: <pre><code>
import logging
from neo4j import GraphDatabase
from neo4j_graphrag.indexes import upsert_vector
import openai
from PyPDF2 import PdfReader
from langchain.text_splitter import RecursiveCharacterTextSplitter
from dotenv import load_dotenv
load_dotenv()
# Set up logging to both file and console
log... | https://stackoverflow.com/questions/79079178/neo4j-graphrag-document-insertion-but-nothing-is-coming-in-my-neo4j-workspace |
Question: <p>While using Agentic RAG with Crew-Ai and using their own integrated tools such as pdfTool or TXTSearchTool, I am getting the following error: "</p>
<pre><code>ImportError: cannot import name 'PydanticDeprecationWarning' from 'pydantic' (C:\Users\Administrator\Desktop\AgentRAGsearch\venv\lib\site-packa... | https://stackoverflow.com/questions/79007732/getting-error-while-doing-integration-for-agenticrag-and-crew-ai-for-llms |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.