Docsity

Machine Translation - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Toggle sidebar
bg1
1
HOW MACHINE TRANSLATION OF WEB PAGES
WORKS ?
Introduction
•Machine Translation (MT)
•Translate one natural language to other language by the
computational power of computer
•When computer was developed, MT has brought up
•A demonstration to solve the MT as early as 1950’s
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Machine Translation - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

HOW MACHINE TRANSLATION OF WEB PAGES

WORKS?

Introduction

• Machine Translation (MT)

  • Translate one natural language to other language by the

computational power of computer

• When computer was developed, MT has brought up

• A demonstration to solve the MT as early as 1950’s

Docsity.com

Introduction

• Processing was slow before 1980’s

  • the result is poor
  • computation ability not enough to solve MT problem

• After 1980s’, people pay attention back to MT

  • the growth of computation

• Nowadays, different approaches can be implement

  • rule-based machine translation (RBMT)
  • statistical machine translation (SMT)…

Introduction

• Web make a new stage of MT after 1990s’

  • The application of MT in Global, also e-Business becomes

more important

• 260 countries are connected by internet, over 26

major languages.

• Non-English language speakers take about 43 percent

of online population.

Docsity.com

Web-MT Service

Browser integration Web Page integration Mobile version 7

Basic Work flow

  • Build a client/server translation service by various architectures
    • Provide translation service by connect web server
    • MT application still relies on tradition MT approach
  • Different translation language rules and approaches will be

developed

  • as a series of modules
  • in the back-end server side
  • Front-end client interface accept the translate requirement ,

send to server side

  • Result send back to client after processing

Docsity.com

Basic Work flow

Client Web Interface TranslationMachine Server Source Language Target Language

... SMT RBMT Approaches^ MT Probabilistic Data/Corpus Lexicon/ Dictionary Grammar Rule Resources ... Module 1 ... Modules E.g. Use Google translator to translate English to Germany. English = Source language (SL) Germany = Target language (TL) Module 2 Module 3

Basic Work flow

  • Different MT approaches
    • rule-based (RBMT)
    • statistical (SMT),
    • example-based
    • hybrid (RBMT + SMT)…
  • Different Modules
    • HTML fetching
    • Word segmentation
    • Part of Speech tagging…
  • Depend on MT approaches
    • Different Resource:
      • Probabilistic data
      • Lexicon
      • Grammar rule

Docsity.com

Transfer approach

  • 3 Steps:

1. Analysis: Parses input into Abstract Source Representation

( SL Intermediate )

2. Transfer: Translate Intermediate into Abstract Target

Representation (TL Intermediate)

3. Generation: Map TL Intermediate into output

Source Language Text Target Language Text Analysis Stage: SL Dictionary + Grammar rule SL Intermediate Generate Stage: TL Dictionary + Grammar rule TL Intermediate Transfer Stage: Bilingual Dictionary + Grammar rule

Interlingua approaches

  • Similar as Transfer approach
  • 2 steps:
  1. Analysis: input is converted to one Interlingua representation
    • A summarized, abstract meaning, Neutral Universal Language
  2. General: transfer Interlingua to target text Source Language Text Target Language Text Analysis Stage: Source Dictionary + Grammar rule Interlingua representation Generate Stage: Target Dictionary + Grammar rule

Docsity.com

Statistical Machine approaches

  • The most widely-use approach
  • Training a large Parallel Bilingual Corpus
    • Bilingual corpus is a set of documentations with SL, TL and translated relationship
  • Easier to build Multilingual MT
    • No matter the closely or un-closely language-pair

Statistical Machine approaches

1. Input text is segmented into phrases and strings

2. Translate word segments by probability theory and training

data

3. Arranging, combining the Segments by probability theory

and training data

Source Language Text Target Language Text Source Segments Language Model Target Segments Translation Model Parallel bilingual corpus

Docsity.com

Example-Based approaches

  • MT system is “ Imitating ” the translation of similar segment in corpus She sells flowers in the farmers’ market every day She sells flowers every day in the farmers’market Dia menjual bunga setiap hari Example: She sells flowers every day - > Dia menjual bunga setiap hari. Example: The lady in the farmers’ market is my cousin - > Wanita di pasar tani itu ialah sepupu saya. di pasar tani itu Dia menjual bunga di pasar tani itu setiap hair. Decomposed Recombined Translation 19

Hybrid approach

  • Build rule-based MT is expensive
    • Add linguistic rule, the result will be inconsistent
    • Add new language is different
  • Statistical approach can’t reach the quality for people to fully

understand

  • Especially when translating long sentences
  • New idea: Build Hybrid approach
  • E.g. SYSTRAN: Hybrid Rule-based + Statistical approach in 2010

Docsity.com

Modules and Resources

  • Varies modules and resources are used between different MT applications
  • Case: Multi-languages MT system based on the Statistical approaches Word-to-Word Alignment Segment Extraction Statistical Translator Associated Sequence Bilingual Corpus SL Text TL Text Module Resource Monolingual Corpus Segment Table Translation Model Language Model

Process and architectures of Web MTs

  • Varies architectures are used between MT applications
  • Case 1: _Translate English to Bangla and Punjabi to Hindi
  1. Parsing HTML Source Code_ : Use a HTML Parser, omits HTML tags, obtain content texts, combined as a SL input text _2. Translate input text to TL Text
  2. Modifying original HTML code:_ Replace SL content by the TL text. The modified HTML code redirected to client HTML Source Code SL Content Text TL Text Modified HTML Code Parsing Translate Replace

Docsity.com

Process and architectures of Web MTs

  • Different Language-pair wrappers (as Chinese to English, Spanish to English)
  • Include kernel of MT system
  • Also Pre-processing module for SL
  • The Translation implement MT program, result send back to client by opposition direction. Languages 1 Wrapper Pre- Processing (^) MT System Server Process and architectures of Web MTs
  • Case 3: Use Moses toolkit to build 3 different web MT systems
  • Moses is a open-source development software
  • Design 1: Apache Web Server Tomcat Server Server Client Translate Modules Translate Modules Translate Modules Translate Modules Language Pair 1 Language Pair 2 Language Pair 3 Language Pair 4 Moses Toolkit Client A Client B Client C Docsity.com

Process and architectures of Web MTs

  • Apache Web Server and Tomcat Server : Communicate between kernel MT system (Moses Toolkit) and Clients
  • Moses Toolkit only handles 1 request
  • When multi-client send requests, the Tomcat Server queues them (FIFO)
  • Moses Toolkit activate and re-load related language-pair MT system every time
  • Simple, not efficiency Apache Web Server Tomcat Server Server Translate Modules Language Pair 1 Moses Toolkit Client Client A Process and architectures of Web MTs
  • Design 2 : Apache Web Server Tomcat Serve Server Client Moses Server Client A Client B Client C Language Pair 1 Modules B Modules A Language Pair 2 Modules B Modules A Language Pair 3 Modules B Modules A Language Pair 4 Modules B Modules A Docsity.com

Process and architectures of Web MTs

  • Each language-pair, system creates a separate Moses server
  • Keeps translation resources, such as CPU, memory, independent of each other
  • Work-Load of resource is reduced.
  • Compare the result of the second design, this design is better Apache Web Server Tomcat Server Server Moses Server 1 Client Client A Moses Server 2 Modules B Modules A Modules B Modules A Language Pair 1 Language Pair 2

Conclusion

  • Numerous web MT application is existing in market
    • Various approaches, resources, architecture
    • Yahoo! Babe Fish : Rule-based approaches
    • Google translator/ Bing translator : Statistics approaches
  • Give a fast, instant translation to user
  • Although can’t provide the high quality output
  • It is satisfied for general purpose

Docsity.com

Conclusion

  • Various ways to use web-based MT service
    • Basic Client-Server MTs
    • Automatic webpage translation
    • Toolkit integration
    • Browser integration.
    • Mobile version web translation application
    • Real-time Speech translation
  • By the powerful computation and resource on Web
  • Web machine translation become convenient and easier

accessible

Docsity.com