Results 1 to 8 of 8

Thread: help in language identification

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104

    help in language identification

    Hi,

    I need a help. I have to make an application the separates and identifies different languages of text and puts them in separate files. please help me how i can do that?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Just make a list of every possible word in every language that you are working with, and put it all in a For loop.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    If it would be word doc's he could use the language properity. That could be manipulated, but is's easier.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    hey opus, how can i do using word doc, bcoz my txt file can also be saved in .doc extension. please let me know that.

  5. #5
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    In word you can set the language of your text (or better for each word) using Extra/Language.
    The get that info, you could use for a selected word
    VB Code:
    1. Selection.LanguageID
    But the user can set this language to what he wants, so it can be set for a different language. I don't think a text-file does hold this info.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104

    help in language identification

    Thank you very much it worked. I need another small help. when i am opening a word document, the complete MS WORD application is starting, can i do that with out opening the MS WORD application. what is the syntax?

    Thanks in advance...

  7. #7
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    No, word has to be running to use that, but Word could be running in background (not seen on the screen). Would that be OK?
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    Yes, that would be great. if word is running at the back ground, but not visible. i think we can do with property

    visible:=False

    this property some time works some times it doesnot. I have new problem.

    I have used MS WORD 10.0 OBJECT LIBRARY to detect different languages in a text file. it is working fine with spanish. but for other languages, it is worst. At some places it is detecting correctly and at others it is not. But when i open the same text file in MS WORD, MS WORD is able to detect the language correctly.

    CAN ANY ONE HELP ME IN THIS

    i AM ATTACHING THE CODE... IF SOME ONE IS ABLE TO FIGURE THE PROBLEM OUT, I WOULD BE MUCH THANKFUL
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width