Comments (3)
Hi,
I am thinking whether you made a typo in your python client which caused
the problem.
In the following function, I guess you want to use "text" (the argument to
the function) instead of "l" on Line 3:
def translate_thread(text):
proxy_n = xmlrpclib.ServerProxy(moses_url)
response = proxy_n.translate({'text': l})
print(response['text'])
, as the "l" is from the main thread and it could be any arbitrary sentence.
Hope it helps.
Best wishes!
Pidong
On 30 July 2015 at 12:17, cidermole [email protected] wrote:
When trying to feed Moses via XML-RPC with 32 sentences to translate in
parallel, it returns occasional duplicates. Depending on the method to do
the threading in Python, sometimes Moses blocks on and never replies to
XML-RPC requests.Standalone Python3 script to feed XML-RPC and trigger this bug:
http://pastebin.com/fJdGQywqMoses config (pretty straightforward, CBPT enabled [1]).
http://pastebin.com/rmtLdxFgScript results (32 lines, but note the duplicates):
http://pastebin.com/1E42ngD7Expected script results (no duplicates):
http://pastebin.com/gRZ1QuGa(obtained without threading, by waiting for each request as follows)
for l in emea_en[0:32]:
t = threading.Thread(target=translate_thread, args=(l,))
t.start()
t.join()[1] http://www.statmt.org/moses/?n=Advanced.CacheBased
—
Reply to this email directly or view it on GitHub
#120.
from mosesdecoder.
Ouch. This one was really obvious, thank you.
I'm still wondering why the other attempt of mine is blocking indefinitely...
But indeed, this looks like it has nothing to do with Moses.
from mosesdecoder.
You are welcome.
Best wishes!
Pidong
On 30 July 2015 at 14:32, cidermole [email protected] wrote:
Ouch. This one was really obvious, thank you.
I'm still wondering why the other attempt of mine is blocking
indefinitely...But indeed, this looks like it has nothing to do with Moses.
—
Reply to this email directly or view it on GitHub
#120 (comment)
.
from mosesdecoder.
Related Issues (20)
- Lexical reordering scoring failed at /home/ubuntu/Moses/mosesdecoder/scripts/training/train-model.perl line 1924. HOT 2
- Please don't create new issues HOT 4
- No abbreviation Files Found HOT 1
- Evaluation with multi-bleu.perl or multi-bleu-detok.perl HOT 16
- Placeholders should be separated by comma HOT 4
- tiny weights after tuning HOT 2
- sentence-splitter HOT 10
- Question:Related translation models.
- How to increase BLEU? HOT 1
- PROBLEM: alignment is 0. HOT 2
- normalize-punctuation.perl Change the Chinese punctuation marks in English sentences into English. HOT 1
- symal crashes on Linux after latest update HOT 3
- It seems the home page is not working HOT 1
- train-model.perl failed HOT 4
- Tunning translation model failed with this error
- Replace non-breaking space with regular space HOT 1
- tokenizer.perl supported language HOT 2
- symal: permission denied HOT 4
- Looking for Arabic/English demo
- webshell exists in the project HOT 1
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.
from mosesdecoder.