HOWTO Write a sentence-building program?

Hi everyone,
I'm a programming enthusiast studying Linguistics. I've been toying with an idea for a side project and I'd like your input on a few points. I want to write a program that reads user input, matches it with noun and verb repertoires and builds grammatical sentences in French.
Sample entries, stored in separate files:
== common nouns ==
maison; fs; maisons; fp;
enfant; ms; enfants; mp;
cheval; ms; chevaux; mp;
== intransitive verbs ==
manger; mange; manges; mange; mangeons; mangez; mangent;
exploser; explose; exploses; explose; explosons; explosez; explosent;
dormir; dors; dors; dort; dormons; dormez; dorment;
A user would, for instance, select 'chevaux' and 'manger' and the program would read the gender and number (masculine, plural), pick the appropriate article and conjugate the verb accordingly by printing: Les chevaux mangent. Eventually I'd like to expand entries to allow for more complex sentences like Les chevaux mangent bruyamment les carottes que le fermier leur a offertes.
I'd also integrate syntactic and semantic data so that the program can assess the sentence's grammaticality.
That part is all fine and dandy, but I'm not exactly sure how to get started. I have some knowledge of C and Java and I'm willing to learn (a) new language(s) if necessary.
My questions are:
What language would you recommend for this? I'd like to build a GUI at some point but it's definitely not a priority.
What format (CSV, XML, etc.) should I use to store lexical units? I've read good things about XML as far as readability and parsing goes, but it seems to be less efficient with large datasets. I don't expect my repertoires to grow that much but you never know! :-)
I'm also open to IDE/text editor recommendations. I've been using geany for C and Eclipse for Java.
Thanks in advance for reading and/or replying. I look forward to your input.

I assume you've explored the background:
http://en.wikipedia.org/wiki/Machine_translation
From my general impression machine translation is a hard problem.  Having a key:item translation dictionary is the easy part.  The difficulty is idioms:
http://en.wikipedia.org/wiki/Idiom
A literal word-to-word translation often does not fit into the destination language as the meanings are not carried by the individual words but instead the phrases have special meaning culturally which is different per culture.
For example, the TV show "Big Brother" has an Orwellian meaning in the west and that is something we understand culturally.  However when an equivalent show was made for middle-eastern audiences that idiom is not developed there so the name of the show, roughly translated, was "The Boss."  The semantics are near each other in domain but the exact translation is not possible because the underlying meanings are not equivalent between the cultures.
Anyway, if you figure out machine translation there are a few hundred million dollars waiting for you..
Edit: And I believe I misunderstood you?  You are not looking for translation?
Last edited by headkase (2013-02-01 17:02:06)

Similar Messages

  • Windows App Certification Kit - Test Fails for Validate Desktop App at "Write appropriate Add/Remove Program values"

    Hi,
    I am trying to validate a .Net Framework 4 WinForms application for use in the Microsoft Partner Network portal.
    I am using Windows App Certification Kit 3.4 for Windows 8.1 , and the Validate Desktop App option.
    To build the package I am using InstallShield 2012 SPR Limited Edition (for Visual Studio), and the validation fails
    only with the following error (please also see the attached image):
    Clean reversible install test: Failed to Write appropriate Add/Remove Program values
    Error Found: The registry population test detected the following error: app didn't create the required registry entries.
    A non-optional value 'DisplayName' is missing or invalid (same for 'Publisher', 'ProductVersion')
    Please note that I have filled in all the publisher/product details in the InstallShield project, on the General Information page.
    Also I have tried to use the Microsoft Visual Studio Installer Project for VS2013, and the validation failed with the exact same error.
    (https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d)
    Any help would be very appreciated.
    Thank you.

    You may need to add the necessary info to the app’s Windows Installer package so it can configure Add/Remove Programs in Control Panel correctly. Setting these properties automatically writes the corresponding values into the registry. From the picture,
    you are missing some necessary information about your desktop app.
    Also You need the correct admin permissions to write to the registry.
    Please refer to this thread:
    http://stackoverflow.com/questions/21182856/windows-app-certification-kit-test-result-app-didnt-create-the-require-regist
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need suggestions to write a PL/SQL program

    Hi,
    We have some readme documents in different places. we need to keep the docs in specified folders. for example if we have around 100 docs we need to figure out the required docs by giving the just any one word from that doc name.
    now the requirement is need to keep all the docs in one specified folder (check the product name, if the product is there then it will pick all the docs related to that particular product and keeps in separate folder). whenever we need to find out any one of the document from that product we need to give the short word from that doc name then it will show you the required doc.
    So could you please let me know is it possible to write any PL/SQL program for the above requirement else suggest me which one will support to resolve the above requirement.
    Kindly suggest me for the above request.
    thanks in advance.

    You may want to consider loading the documents into blobs or using BFILES.
    BFILE defnition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50996
    BLOB definition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50997
    Regardless of whether you use BLOB's or BFILE's, you'll have to build a metadata table for each document.
    For example, if you decided upon BLOB's, you would need some kind of metadata table as follows;
    create table doc_table (id number, doc_name varchar2(20), b blob);
    insert into doc_table values (1, 'DOC_A', to_blob('A'));
    insert into doc_table values (2, 'DOC_B', to_blob('B'));
    commit;
    create table doc_metadata (id number, keyword varchar2(20));
    insert into doc_metadata values (1, 'A');
    insert into doc_metadata values (2, 'B');
    commit;You would then search for a document based on a keyword, for example,
    to find document A;
    select dt.doc_Name      
    from   doc_table    dt
          ,doc_metadata dm
    where  dt.id = dm.id
    and    dm.keyword like 'A';You could add more columns (as you like), for example location, size etc.

  • AP payment custom build program

    I have a requirement to create an AP payment file format specific to a Bank (Oracle 11i). The bank accepts payment file in 2 different formats.
    Format X: to make payment in its own country (Netherlands). i.e. payment for invoices where supplier bank is in Netherlands.
    Format Y: to make payment in all other counties (except Netherlands).
    Standard Oracle Payment SELECT/BUILD program selects Invoices for all countries (for the param given: pay batch, currency..)
    If I create two payment FORMAT programs; one to pick up the Invoices for payment in Netherlands and another to pickup invoices for payment in all other counties; will it be fine ?
    OR
    I have to create a custom BUILD program to build a payment batch considering counties of supplier (and payment FORMAT program to create the flat file)
    Help Appreciated !!
    Thanks
    SM
    Edited by: user13294561 on 27-Sep-2010 00:22

    Define 2 concurrent program to format batch records and create payment file
    (or a single program with technical handling of batch type)
    Define 2 automatic payment format program
    Sample
    NL Foreign Payments Program
    NL Domestic Payments Program
    Define 2 electronic payment formats,
    Sample
    NL Foreign Payments
    NL Domestic Payments
    Select each of your payment format program in this setup
    Go to Internal Bank Account Setup
    Payables Document
    Create 2 payables document
    EFT DOMESTIC,
    EFT FOREIGN
    Payment Format,
    Select the format programs
    Create Batch
    Hope this helps
    Bilal SARIOZ

  • BUILD PROGRAM ERROR - CANNOT CREATE PAYMENTS

    Hi, I'm trying to run a payment batch using payments manager and encountered this error.
    In my test data I used two suppliers that belongs to the same operating unit.
    Payments: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    IBYBUILD module: Build Payments
    Current system time is 09-NOV-2009 11:26:11
    **Starts**09-NOV-2009 11:26:11
    **Ends**09-NOV-2009 11:26:13
    BUILD PROGRAM ERROR - CANNOT CREATE PAYMENTS
    Start of log messages from FND_FILE
    IBY_PAYGROUP_PUB.performPostHookProcess: Fatal error - Payment count mismatch after hook operation. # payments passed to hook: 1, # payments returning from hook: 2
    IBY_PAYGROUP_PUB.performPostHookProcess: Aborting program ..
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Exceptions posted by this request:
    Concurrent Request for "Build Payments" has completed with error.
    Concurrent request completed
    Current system time is 09-NOV-2009 11:26:13
    Please help
    thanks,
    Renz

    Hi
    Please review the below note from Metalink,
    Bug No. 6771847
    Filed 24-JAN-2008 Updated 13-MAR-2008
    Product Oracle Payments Product Version 12.0.4
    Platform Linux x86 Platform Version ENTERPRISE 4
    Database Version 10.2.0.2 Affects Platforms Generic
    Severity Severe Loss of Service Status Closed, Verified by Filer
    Base Bug N/A Fixed in Product Version 12.0.4
    Problem statement:
    R12: AFTER APPLYING 12.0.4 BUILD PAYMENT PROGRAM ERRORS
    please review the same if it resolvs your error.
    Thanks
    Manish Jain.

  • Build Program error

    I am trying to make batch payment in Release 12 via a Payment Manager.
    The invoice which are selected by the payment process request belong to 2 operating units. The problem comes with the build progam getting errored out.
    The out file displays the following message:
    "Build program error: Exception occured when attempting to create payments from the documents payable of the provided payment service request."
    The log file is as follows:
    Payments: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    IBYBUILD module: Build Payments
    Current system time is 22-JUN-2009 15:08:50
    **Starts**22-JUN-2009 15:08:50
    **Ends**22-JUN-2009 15:09:08
    BUILD PROGRAM ERROR - CANNOT CREATE PAYMENTS
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 22-JUN-2009 15:09:09
    Could someone please provide a solution for this.
    you may email me at [email protected]

    so if i have 2 sites...say X and Y then I can pay invoices from these two sites using a single check.
    say on X site i entered invoice 1 and 3
    and on Y site i entered invoice 2 and 4
    so can i pay all invoice 1 2 3 and 4 using batch payment..i know this is yes
    but the question is can i pay using a single check???

  • Build Program in AP modules

    Hi All,
    I am making a custom check printing program. For this i took custom format program APXPBFOR and custom build program APXPBBLD.
    When i am running the payment batch the program is not giving me any output in XML format. when i queried to ap_selected_invoices table nothing was inserted into those tables.
    Could anyone tell me why these tables are not getting populated in BUILD stage or why i am not getting any output for this program, when there is data.
    Please help me, coz when i was doing the POC for this, it was working fine but in between the instance got refreshed and i did everything same but now it;s not working.
    Thanks
    Aryan

    Then you need to use the application builder.  It comes with the Professional Development edition of LabVIEW, or is an add-on to the Full Development Edition or Base Edition.
    You need to create a project file with your VI.  Search LabVIEW Help for "Building a Stand-Alone Application".  Also search the forums on the topic.  It's been covered many time before.

  • Payment Build Program - APXPBBLD

    Hello All,
    Previous developers modified the report (APXPBBLD) for the payment build program. One of the modifications done is Sorting order for check printing.
    Can any one let me know in which function of the report is the sort order for check printing handeld (unfortunately they never bothered to comment what all they touched).
    Thanks,
    Chiru

    If I understood your question correctly you should be looking under Insert_payments function. The order by clause of the select.
    Regards

  • Install Acrobat Portfolio SDK and plugins in your Flash Builder programming environment

    Hello, Experts
        how would I go about introducing Acrobat Portfolio SDK and plugins to the Flash Builder programming environment ?
    -Alex

    https://learn.adobe.com/wiki/display/PDFNAV/Installing+Acrobat+Portfolios+SDK

  • Could not write to file: C:\Program Files (x86)\Adobe\Acrobat 7.0\ActiveX\AcroPDF.NOR. ?

    Hi, I get this message (loosely translated from Swedish):
    "Could not write to file: C:\Program Files (x86)\Adobe\Acrobat 7.0\ActiveX\AcroPDF.NOR.
    Confirm that you have access to this file"
    when I try to install Acrobat standard 7.0, and after several "retry" I cannot finish the installation.
    Does anyone know why?
    Thank you,
    MIa

    Appears that you are on a Win7, 64-bit machine. AA 7 has an issue with activation since the server no longer exists for AA 7. There is a separate install at Adobe to address this issue that might solve the problem temporarily (Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3). Even if you get AA 7 installed on Win7, you will have to do workarounds to make it work. Both the print driver (Adobe PDF) and AcroTray.exe fail on Win7 and they require workarounds to be able to even use AA 7. It is strongly recommended that you get AA XI at this point.

  • HT2638 My iPhoto has dumped all my albums. I have ran and re ran all the repair and re build programs, nothing is working, how to I get my photos back???

    My iPhoto has dumped all my albums. I have ran and re ran all the repair and re build programs, nothing is working, how to I get my photos back???

    Just as an FYI: some people report issues where their albums are missing but their photos remain. Some mention photos going but the albums still present, just not populated.
    There is no iPhoto 10.8.2. Perhaps you're referring to the version of the OS you have? Not especially relevant, the version of iPhoto is what's needed here.
    I mention this should you seek help in the future.
    For me: vague and incomplete would describe your attempt at seeking help. You're too lazy to give an accurate description of your issue, too lazy to tell us what you've tried to repair it - so we don't waste time your time (and ours) making suggestions you've already tried - and when asked don't respond except to abuse the person who tries to help you.
    Good luck with your issue.

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Build program from existing Driver VIs

    I have an Agilent device (OSA) that I am trying to interface with my PC. I've installed all the necessary drivers (488.2 2.5) and MAX recognizes my device.
    Agilent provided me with a series of files (MNU files and a LLB [vi library]) that supposedly allow me to build my communication interface. However, since I have little experience with LabView, I am not sure where to begin. I suppose that these VIs get somehow incoorporated into my large custom LabView program and hence depend on each other to function. Also, I've been told that two of the VIs (Init and Close) have to go at the beginning and end of my program.
    Can someone provide any suggestions or guidance? Perhaps a tutorial that shows how multiple VIs are used to build a large program.
    Thanks,
    Alex

    Thanks for the advice. I hope that website will help.
    I placed the drivers into the directory that you specified. However, when I go to Tools/Instrumentation/Find Instru Drivers I receive an error which closes that window. Please see the image for the error window.
    Thanks,
    Alex
    Edit: And yes, my connection is on. However, I fail to see why it even matters.
    Edit 2: However, I see that before the window closes, my device does show up on the top left. This, I assume, means that everything is okay. Correct?
    Message Edited by ap8888 on 06-17-2008 01:23 PM
    Attachments:
    error9.JPG ‏15 KB

  • Can I use Word for Mac 2004 to write basic solver/Macros programs?

    I just bought the new macbook aluminum unibody. I am in college and am taking computer programming in fall, I need to be able to write basic programs that utilize macros and solver. I spoke with one mac person who told me I would need to buy parallels, the microsoft OS and then microsoft word for Microsoft OS.
    However, that costs upwards of 200$ for a class I am only going to be taking for 2 months. Someone else has told me that the 2004 version of Word for Mac has macros abilities on it (those that are not on the current version, but that the 2011 version will have). Can I just use the 2004 version? Or does anyone have other suggestions?

    Office 2004 and Other Applications Don't Work in Lion/Mountain Lion
    If you have Office 2004 which is a PPC-only suite, it will not work in Lion/Mountain Lion. You need to upgrade to Office 2011 - Mactopia - or you can try the freeware suite, Libre Office, that is functionally similar to Office 2007 for Windows except it works on Lion/Mountain Lion.
    You may want to consider as well:
    These two suites are similar to Libre Office but not as current or as well-supported:
    NeoOffice
    Open Office
    And, then there is Apple's iWork suite:
    Pages - word processing and layout
    Keynote - presentation
    Numbers - spreadsheet
    Each can open and save Office compatible files. They may be purchased separately via the Mac App Store for $19.99 each.
    As for other software, any PPC-based software will not run in Lion or Mountain Lion because Rosetta is no longer part of OS X. You will need to upgrade to Intel versions of the software.
    (Access to the Mac App Store requires Snow Leopard 10.6.6 or higher and an Apple ID.)

  • How to write a Mail Java program without using the JavaMail api?

    Can I do that?
    if so, which classes should be used?
    and how can i use Javamail to write a program which
    allows me to write Email.

    You can open up raw sockets to an SMTP server to send email.
    Here is one article that has code for how to send email using sockets.
    http://www.javaworld.com/jw-12-1996/jw-12-sockets.html

Maybe you are looking for

  • International version for one-time vendor

    Dear all, is it possible to bring out the international version screen when booking the one-time vendor invoice? Thanks and regards

  • Over head key

    Hi Gurus,     I want clarification regarding over head key and over head group.my client is required the two diff types of cost sheets 1.cost sheet at Domestic and 2.Cost sheet at Exports.Finished Goods are differs at Domestic and Exports but Raw mat

  • Fpsane.cpp

    After changing the History chart length in waveform chart and trying to save the vi, an error message popped up and it reads as follows, Fatal Internal Error: "fpsane.cpp", line 397 LabView 8.0 Can anyone tell me what the problem is?

  • Use OAF page and Workflow:

    Hi, In a workflow i have a OAF region refered as JSP:/OA_HTML/OA.jsp?page=/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN&INVOICEID=-&INVOICE_ID- Now instead of this region i created a new region satisfying my requirements. Then moved the

  • What camera for NLE in Ppro3

    my choices are sony z1 sony v1 panasonic hvx 200 ( think I remember from a previous posting that ppro & z1 combo was "no good"??? ) comments welcome