Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8803053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:14:28+00:00 2026-06-14T01:14:28+00:00

I have some text in French that I need to process in some ways.

  • 0

I have some text in French that I need to process in some ways. For that, I need to:

  • First, tokenize the text into words
  • Then lemmatize those words to avoid processing the same root more than once

As far as I can see, the wordnet lemmatizer in the NLTK only works with English. I want something that can return “vouloir” when I give it “voudrais” and so on. I also cannot tokenize properly because of the apostrophes. Any pointers would be greatly appreciated. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:14:29+00:00Added an answer on June 14, 2026 at 1:14 am

    Here‘s an old but relevant comment by an nltk dev. Looks like most advanced stemmers in nltk are all English specific:

    The nltk.stem module currently contains 3 stemmers: the Porter
    stemmer, the Lancaster stemmer, and a Regular-Expression based
    stemmer. The Porter stemmer and Lancaster stemmer are both English-
    specific. The regular-expression based stemmer can be customized to
    use any regular expression you wish. So you should be able to write a
    simple stemmer for non-English languages using the regexp stemmer.
    For example, for french:

    from nltk import stem
    stemmer = stem.Regexp('s$|es$|era$|erez$|ions$| <etc> ')
    

    But you’d need to come up with the language-specific regular
    expression yourself. For a more advanced stemmer, it would probably
    be necessary to add a new module. (This might be a good student
    project.)

    For more information on the regexp stemmer:

    http://nltk.org/doc/api/nltk.stem.regexp.Regexp-class.html

    -Edward

    Note: the link he gives is dead, see here for the current regexstemmer documentation.

    The more recently added snowball stemmer appears to be able to stem French though. Let’s put it to the test:

    >>> from nltk.stem.snowball import FrenchStemmer
    >>> stemmer = FrenchStemmer()
    >>> stemmer.stem('voudrais')
    u'voudr'
    >>> stemmer.stem('animaux')
    u'animal'
    >>> stemmer.stem('yeux')
    u'yeux'
    >>> stemmer.stem('dors')
    u'dor'
    >>> stemmer.stem('couvre')
    u'couvr'
    

    As you can see, some results are a bit dubious.

    Not quite what you were hoping for, but I guess it’s a start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text that I always need to display (like a HUD). When
I need to clean up some file containing French text. Problem is that the
I have some inputs that I need to process from a form. The #
I have some text in my application that says in case you need extra
I have some text and then at the end of that, it has an
I have some text on an HTML page. Need a bookmarklet (no jQuery) that
I have some text which I need to translate into Japanese. Translate text, webpage,
I have some text in a field that I need to replace, but the
I have some text that was generate by another system. It combined some words
I have some text coming into a database that apparently has some sort of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.