Tag string splitting tool
📑 Split and merge settings
💡 Instructions for use
- The split mode is used to separate multiple contents in a column, such as splitting "province, city, district" into three columns, or splitting a label string into multiple label columns.
- Merge mode is used to combine multiple scattered columns into one column, such as combining last name and first name into a name, and combining area and number into a complete number.
- In-cell delimiters support commas, spaces, semicolons, dashes, underlines, and vertical lines; table column delimiters are independent of them and can be set separately.
- Setting an upper limit on the number of splits can prevent individual abnormal rows from splitting too many columns, and the excess will be merged into the last column instead of being discarded.
- Removing leading and trailing spaces before splitting can avoid redundant empty columns. It is recommended to keep it enabled.
- The data is only processed in the browser and is not uploaded or saved; if you need to keep the file, please copy or download the results.
Tag string splitting splits the tag list in the content into multiple columns, and then counts them one by one.
Three common structures of label data
- Multiple tags in one row: Each row of content has several tags, and the number of columns after splitting is determined by the maximum number of tags.
- Inconsistent label order: The same group of labels has different orders in different rows. Statistics need to be summarized by column and then combined for counting.
- There is a huge disparity in the number of tags: there are more tags for popular content and fewer tags for unpopular content. After filling in the empty values, the list will be longer.
Operational suggestions for statistics
After splitting it into multiple columns, merge all the tag columns into one column vertically, and then use the deduplication and counting tools to count the frequencies to get the tag popularity ranking. If the tag string contains Chinese full-width commas, remember to unify them into half-width commas first.
Tag strings are commonly found in content management systems and e-commerce backends. Use commas or vertical bars to connect multiple tags into one segment. After disassembling, you can directly get the tag list, which is convenient for counting the number of uses of each tag and deduplication.
Unify the delimiters before splitting: Mixing half-width commas, full-width commas and vertical bars will cause the results to be more or less. It is also recommended to remove the spaces before and after each label, otherwise the same label will be regarded as two due to the difference in spaces.
After the split is completed, it is recommended to deduplicate the tags. Usually only one tag that appears repeatedly in the same row needs to be retained.
It is recommended to replace full-width commas in tags with half-width commas before splitting them.
Only by merging all tag columns vertically before statistics can we get the complete popularity ranking.
📖 Glossary
- sort
- Split multiple contents in a cell according to separators and put them into adjacent columns.
- Merge columns
- Use connectors to combine the contents of multiple columns into one column in order. The original columns can be retained or removed.
- cell separator
- The character used to separate multiple contents inside a cell and the column separator of the table are two different things and need to be set separately.
- Column separator
- Characters used to divide table columns. Tab characters are used for content copied by spreadsheet software, and commas are used for comma-delimited files.
- Fill empty cells
- When the number of splits in each row is inconsistent, fill in the empty columns according to the maximum number to ensure a neat table structure.
- Split cap
- Limit the maximum number of columns that can be split at a time, and merge the excess into the last column to prevent abnormal rows from cluttering the table.
- tag string
- A group of tags connected with delimiters, such as comma-separated keywords, which can be split into multiple columns.
- connector
- The character inserted between the contents of each column when merging, which can be a space, a comma, a dash, or an empty space.
- Data cleaning
- A common process for organizing data, sorting and merging are often used in conjunction with steps such as removing spaces and removing duplicates.
- structural consistency
- The number of columns in the entire table remains the same, which is a prerequisite for the table to be read and imported correctly.
🔗 All keywords and tutorials
❓ FAQ
- What to do if there are commas in tags?
- Will cut a label into two pieces. It is recommended to replace the commas in the labels with other symbols in the data before splitting.
- How to count frequencies after splitting?
- After merging each label column into one column, use the duplicate removal tool to check the duplicate items and times.