Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qbe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
A
Anaïs Halftermeyer
queryByExample
qbe
Commits
41a5c54f
Commit
41a5c54f
authored
Sep 01, 2025
by
Elias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
query preparation
parent
b3002fd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
README.md
README.md
+10
-0
csv_en_mots.py
csv_en_mots.py
+22
-0
No files found.
README.md
View file @
41a5c54f
...
@@ -80,6 +80,16 @@ python3 hierarchiqueAvecDerniereDistance.py \
...
@@ -80,6 +80,16 @@ python3 hierarchiqueAvecDerniereDistance.py \
--output_name_complete
dendro_complete.png
--output_name_complete
dendro_complete.png
```
```
# Matching process
## 1. Query preparation
### • This script assumes you have a .csv file with a column corresponding to the words you want to cut from the turns of speech
**csv_en_mots.py :**
Output example : "word1" "word2"
```
bash
python3 csv_en_mots.py mots.csv
```
# Tools
# Tools
### • Counting the number of segments
### • Counting the number of segments
...
...
csv_en_mots.py
0 → 100644
View file @
41a5c54f
import
csv
import
sys
if
len
(
sys
.
argv
)
!=
2
:
print
(
"Usage: python3 csv_en_mots.py mots.csv"
)
sys
.
exit
(
1
)
fichier_csv
=
sys
.
argv
[
1
]
mots
=
[]
with
open
(
fichier_csv
,
newline
=
''
,
encoding
=
"utf-8"
)
as
f
:
lecteur
=
csv
.
reader
(
f
)
for
ligne
in
lecteur
:
if
ligne
:
# éviter les lignes vides
mot
=
ligne
[
0
]
.
strip
()
if
mot
:
mots
.
append
(
f
'"{mot}"'
)
# Transformer en une seule ligne
resultat
=
" "
.
join
(
mots
)
print
(
resultat
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment