Questions tagged [french]

Computing issues involving the French language

Questions related to computing issues, including not but limited to character encodings, fonts, and formatting, involving the French language, spoken in France, Belgium, Switzerland, Canada, and many former colonial regions in the Americas and Africa.

148 questions
236
votes
15 answers

Why can't my program compile under Windows 7 in French?

I'm running Windows 7 French and I'm trying to compile this really basic program, but Visual Studio is being stubborn and refuses to comply. I also tried compiling it with both GCC 4.7 and Clang trunk on Coliru and I get more or less the same errors…
Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
10
votes
2 answers

How to POS_TAG a french sentence?

I'm looking for a way to pos_tag a French sentence like the following code is used for English sentences: def pos_tagging(sentence): var = sentence exampleArray = [var] for item in exampleArray: tokenized =…
sahraoui asmoun
  • 285
  • 1
  • 2
  • 10
10
votes
2 answers

Handling french letters in Python

I am reading data from a file which contains words with french and english letters. I am attempting to construct a list of all of the possible english and french letters (stored as strings). I do this with the code below: # encoding: utf-8 def…
David Ferris
  • 2,215
  • 6
  • 28
  • 53
9
votes
1 answer

Whitespace before some punctuation characters in French: is there a CSS way to avoid lines breaking?

For example, in this sentence, "Comment allez-vous ?", the question mark and the last word in the sentence are separated by a whitespace. When French text is written in a column, you will often get something like this: Elle zigzague pour empiéter…
Brachamul
  • 1,886
  • 2
  • 21
  • 34
6
votes
2 answers

Python - How to set French locale?

locale.setlocale(locale.LC_ALL, 'french') work on my local machine (windows 7 + Python 3) locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') work on my other machine (Unix) but if I use this on my local machine, I have this…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
6
votes
2 answers

Error when loading FastText's french pre-trained model with gensim

I am trying to use the FastText's french pre-trained binary model (downloaded from the official FastText's github page). I need the .bin model and not the .vec word-vectors so as to approximate misspelled and out-of-vocabulary words. However when I…
Clara-sininen
  • 191
  • 2
  • 9
4
votes
1 answer

Regex - Extract substrings starting with capitalized letter in a list, with french special symbols

I have a set of french strings like this one: text = "Français Langues bantoues Presse écrite Gabon Particularité linguistique" I want to extract the substrings starting with capitalized letters into a list, as follows: list = ["Français", "Langues…
Youplala
  • 81
  • 5
4
votes
5 answers

Shortcut to comment out multiple lines in Jupyter Ipython notebook on Mac with French keyboard layout (without numpad)?

I'm trying to select and comment # multiple lines using Jupyter Notebook on Mac with French keyboard layout and no numpad. To type the slash (/) on this keyboard, the shortcut is Shift + : When trying to comment lines on Jupyter: with Ctrl + Shift…
Jean Monet
  • 2,075
  • 15
  • 25
4
votes
2 answers

UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' when printing in UTF-8 locale

I am cleaning the monolingual corpus of Europarl for French (http://data.statmt.org/wmt19/translation-task/fr-de/monolingual/europarl-v7.fr.gz). The original raw data in .gzfile (I downloaded using wget). I want to extract the text and see how it…
Sophil
  • 223
  • 1
  • 9
4
votes
3 answers

How to change the language of Google speech recognition

My code: with sr.Microphone() as source: audio = r.listen(source) try: print("You said: " + r.recognize_google(audio) + "in french") except sr.UnknownValueError: print("Google Speech Recognition could not understand…
4
votes
3 answers

NLTK word_tokenize on French text is not woking properly

I'm trying to use NLTK word_tokenize on a text in French by using : txt = ["Le télétravail n'aura pas d'effet sur ma vie"] print(word_tokenize(txt,language='french')) it should print: ['Le', 'télétravail', 'n'','aura', 'pas', 'd'','effet', 'sur',…
JB5778
  • 41
  • 1
  • 4
4
votes
5 answers

Python: replace french letters with english

I would like to replace all the french letters within words with their ASCII equivalent. letters = [['é', 'à'], ['è', 'ù'], ['â', 'ê'], ['î', 'ô'], ['û', 'ç']] for x in letters: for a in x: a = a.replace('é', 'e') a =…
David Ferris
  • 2,215
  • 6
  • 28
  • 53
3
votes
1 answer

App Store Connect Export Compliance "French encryption declaration approval form"

This question is like two questions in one. Firstly, did I choose the correct radio button for my case? Secondly, where do I get the "French encryption declaration approval form"? QUESTION 1 The following screenshots are from App Store Connect…
Cedric
  • 470
  • 6
  • 20
3
votes
4 answers

How to convert French words to integers?

Other questions have been answered regarding converting English words to numbers, particularly using the library w2n or other custom algorithms. However I don't know how to convert French (or generically speaking, any language's) words to integers,…
augustomen
  • 8,977
  • 3
  • 43
  • 63
3
votes
6 answers

display month name in french in php?

I am working on a php code as shown below: " data-timezone=""> ?> // Line A…
flash
  • 1,455
  • 11
  • 61
  • 132
1
2 3
9 10