If you translate text on bing translate (www.bing.com/translator), you can see which word in the source text corresponds to a given word in the translated text. Just hover your mouse pointer over a word.
e.g. If you translate "Fantastic journey" into French, you get "Voyage fantastique" The first word in the source text corresponds to the second word in the translated text.
Is this operation possible via the Microsoft Translator API?
Yes, you can retrieve the word alignment from the Translator API. Details explained here: https://msdn.microsoft.com/en-us/library/dn198370.aspx.
Related
For example, Source language: French. Target Language: English. French word: 'froisser'. In the English textbox on the right, it shows 'crumple'. But under this textbox are listed 'offend' with 3 bars, 'crease' 2 bars, 'crumple' 2 bars, .... If 'offend' more frequently appears as a translated word for 'froisser' than 'crumple', why is the default translation 'crumple' instead of 'offend'? Of the multiple words with 2 bars, why is 'crumple' chosen instead of say 'crease'?
HOW I GET ALL THIS Frequency using cloud library in php
I'm developing a Google Doc add-on with Apps Script. When clicking on a button, I want to highlight (underline or set a different background color) some given words in the entire document.
I know how to format text with Apps Script. I could underline the words with
text.setUnderline(true)
but in that case it would underline the text changing its actual format in the document. I'm looking for a way to highlight (again, underline or set a background color) the words without changing the internal content of the document. In other words, I don't want the highlights to be persisted for the future.
To better understand what I'm asking, the new format of the highlighted words must not be present when printing the document or sharing it with another user who has not installed the add-on.
The idea is to develop a custom spell/grammar checker, and I want to highlight the misspelled or incorrect text as the Google Docs' integrated spellchecker does, without persisting the red underlines in the document.
Notes:
The question is similar to this one and this one, but for Apps Script instead of Microsoft Office API.
I've been suggested to use "suggested edits", referring to this question. I'd like to note this is not what I'm looking for, because the suggested edits would be persisted and they would be visible for anyone opening the document, having my add-on installed or not.
I am showing OCR-ed book pages in Mirador viewer. All words with coordinates are fetched from elasticsearch and search is across all books (meaning I can't use IIIF search api).
I need to highlight certain words in Mirador viewer.
I know that this is possible using annotations, but I need to use those annotations for something else (user comments), so I need another way for highlighting. Highlights should be displayed immediately, while annotations can be toggled.
Is there any solution with Mirador and IIIF presentation protocol or highlighting could be done on image server layer (currently I'm using IIPImage which doesn't support highlighting)?
Is there any other image server that supports highlighting and is it a good idea to do it this way?
Thanks!
I typically open a Google Translate page and start filling it up with words. GT has a left text box for the foreign word and a right text box for the translation
Von wegen Are you kidding me?
haften adhere
Grübeln brood
mausern moult
Besonnenheit calm
Gelassenheit serenity
einvernehmlich mutual agreement
Landtag Parliament
So the left column and the right column as separate text boxes, level word-for-word, foreign word and translation. I tried a bit of Emacs org-mode Google capture -- to no avail. Then it dawned on me that if I can get GT to simply export these two (matched up) text boxes as CSV or a spreadsheet, that would be what I wanted. Any ideas?
You can export the original-translated text pair to Google Sheets (and from there to CSV) by doing the following:
Once translated, click on the star below the translation to save it.
Click the circled star at the top of the page to show your saved translations.
Click on the Export to Google Sheets icon on the top right.
Note that you'll need to be signed in with your Google account to be able to save your translations.
Also, for proper export you should save your words/sentences one at a time so you have one row per translation.
I am making a word prediction software. I have a text area. I want that as the user types something in that text area, an option list should appear on that cursor, the option list should contain all the predictions.
I just want to know how that option list can appear near the cursor in text area.
this can be accomplished using Jquery AutoComplete, but you will need to save all the words to be predicted (may be in json format for example) or use a server-side function