Skip to content

Memsource Analysis

Robin Černín edited this page Oct 11, 2019 · 4 revisions

analyse create

$ memsource analyse create --jobs 7WDDlxHOFj9R495tNTC7h2 --use-project-analysis-settings
+----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field          | Value                                                                                                                                                                            |
+----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| analyse        | {"id": "22897276"}                                                                                                                                                               |
| id             | 324873374                                                                                                                                                                        |
| created_by     | {"first_name": "Robin", "last_name": "Cernin", "user_name": "robincernin", "email": "[email protected]", "role": "ADMIN", "id": "380294", "uid": "i0joEXVYjvh6821clw6Qm5"} |
| date_created   | 2019-10-11 02:24:13+00:00                                                                                                                                                        |
| action         | PRE_ANALYSE                                                                                                                                                                      |
| async_response | None                                                                                                                                                                             |
| parent         | None                                                                                                                                                                             |
| project        | {"name": "Testing project", "uid": "XnrRe6wQlPb0j235Y3h016"}                                                                                                                     |
+----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

analyse show

$ memsource analyse show --analyse-id 22897276
+-----------------------------------------------------------------+---------+-----+-------------+-------------+
| jobs                                                            | netrate | all | source_lang | target_lang |
+-----------------------------------------------------------------+---------+-----+-------------+-------------+
| [{"uid": "7WDDlxHOFj9R495tNTC7h2", "filename": "test_file.md"}] |     0.0 | 0.0 | en          | ja          |
+-----------------------------------------------------------------+---------+-----+-------------+-------------+

analyse project list

$ memsource analyse project list --project-id XnrRe6wQlPb0j235Y3h016
+----------+--------------+------------------------------------------------------------------------------------------------------------------------+----------+------------+---------------------------+-------------+-------------+
| id       | name         | jobs                                                                                                                   | provider | type       | date_created              | source_lang | target_lang |
+----------+--------------+------------------------------------------------------------------------------------------------------------------------+----------+------------+---------------------------+-------------+-------------+
| 22616834 | Analysis #1  | [{"uid": "kLSjSwHtgrFC2hXsr1wrs4", "filename": "filea.md"}, {"uid": "QBKOQCDHt1SDnij0pK4rr5", "filename": "fileb.md"}] | None     | PreAnalyse | 2019-09-24 05:12:21+00:00 | en          | ja          |
+----------+--------------+------------------------------------------------------------------------------------------------------------------------+----------+------------+---------------------------+-------------+-------------+

analyse delete

$ memsource analyse delete --analyse-id 22897276

analyse language create

$ memsource analyse language create --use-project-analysis-settings --jobs 7WDDlxHOFj9R495tNTC7h2 GjxhldVxYbFA2JN2MmOtr0
+-----------+------------+-------------+---------------------------+------------------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id        | analyse_id | action      | date_created              | project_uid            | project_name    | created_by                                                                                                                                                                       |
+-----------+------------+-------------+---------------------------+------------------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 324875323 | 22897449   | PRE_ANALYSE | 2019-10-11 02:40:16+00:00 | XnrRe6wQlPb0j235Y3h016 | Testing project | {"first_name": "Robin", "last_name": "Cernin", "user_name": "robincernin", "email": "[email protected]", "role": "ADMIN", "id": "380294", "uid": "i0joEXVYjvh6821clw6Qm5"} |
| 324875324 | 22897450   | PRE_ANALYSE | 2019-10-11 02:40:16+00:00 | XnrRe6wQlPb0j235Y3h016 | Testing project | {"first_name": "Robin", "last_name": "Cernin", "user_name": "robincernin", "email": "[email protected]", "role": "ADMIN", "id": "380294", "uid": "i0joEXVYjvh6821clw6Qm5"} |
+-----------+------------+-------------+---------------------------+------------------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+