Overblog Tous les blogs Top blogs Emploi, Enseignement & Etudes Tous les blogs Emploi, Enseignement & Etudes
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU
bernardins.overblog.com
Publicité

some difficulties...

some difficulties...

Saturday, we tried to find and count the word "ecriture" in chinese with our pages aspirees, but...we had some problems:

First, to count the chinese word with egrep -w and egrep -o, we have different results.

With egrep -o "$motif" filename. --> we have more at the result than the one with -w.

Second, when we tried to search more than one chinese word at one time with this command(multiple motifs), the pc can not find these words...either to count.

So, these are the difficulties that we encontered yesterday.

SOS, please help us !

P.S. I installed my virtual box with chinese language, but I want to type in french too, where can I change the keyboard layout or add the french keyboard?

Publicité

result witn one word

result = rien ,with many words

Publicité
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article
W
Hey i have never seen some one type Chinese on their computer screen till now. Basically i do not understand a word that language. Also i have heard it is really hard to write as it takes up some time.. Thanks for the post please do keep posting more.
Répondre
S
Important : bien lire la documentation de egrep<br /> 1. egrep (par défaut) cherche des lignes contenant un motif<br /> 2. egrep -w cherche des lignes contenant un motif (il faut en outre que ce soit un mot), on reste donc ici dans le cas général : recherche de ligne contenant le motif<br /> 3. egrep -o se distingue du cas général en ne n'intéressant plus aux lignes contenant le motif mais aux séquences textuelles correspondant au motif : cette option permet d'afficher TOUTES les occurrences du texte reconnues par le motif.<br /> <br /> Si on compte les résultats avec un même motif : le décompte de egrep -o peut être plus grand que celui obtenu en comptant les lignes (il suffit que le motif soit présent plus d'une fois sur une ligne)<br /> <br /> SF
Répondre
C
Pourtant, on a essayé de chercher les motifs en anglais avec egrep -o -i &quot;\b writing | handwriting \b&quot; ../DUMP-TEXT/$i-utf8.txt | wc -l ; et cela marche, pourquoi en anglais, on peut chercher plusieurs motifs en même temps? (D'ailleurs, j'ai essayé de chercher un mot en chinois avec cette commande et ça marche aussi. Et toujours marche pas avec plus un mot.)