Comments (7)
I changed it to work like in your first suggestion for now. Translations need to be added in a new separate CSV file, not as an extra file anymore. Default is just two columns with English as first and Translation as second, but I also included a config switch for the old extra format with 3 columns if you use one of those files.
The translations are currently always visible, and are matched purely based on the tag/alias name. Searching by the translated text still works like before if you leave it true in the config.
from a1111-sd-webui-tagcomplete.
I think I was already able to fix it, at least I don't see any more cutoff on my side with your test tags.
But feel free to reopen this if you find something that still behaves strange with translations.
from a1111-sd-webui-tagcomplete.
The translations will only show if you search by the translated term, just with the rest of the aliases.
So in case of this example, it will show when typing a part of 单人.
I can't really have an "always show" option since a tag often has multiple aliases, so there's no way to choose which one to display in that case (except maybe defaulting to the first/last). And I also don't want to add a completely separate field for translation in the csv since aliases and translations are functionally the same.
Is this a big issue? I was under the impression that you would only use the translations by typing the translated term in the first place.
from a1111-sd-webui-tagcomplete.
The translations will only show if you search by the translated term, just with the rest of the aliases. So in case of this example, it will show when typing a part of 单人.
I can't really have an "always show" option since a tag often has multiple aliases, so there's no way to choose which one to display in that case (except maybe defaulting to the first/last). And I also don't want to add a completely separate field for translation in the csv since aliases and translations are functionally the same.
Is this a big issue? I was under the impression that you would only use the translations by typing the translated term in the first place.
Yes, it's a game changer. Searching english words while displaying translation is the main feature required for non-english speakers, just like the main input box for English-Chinese translation requires you type english words, not the contrary. Or like physical english dictionaries, there're no dictionaries indexed by Chinese words
Search Chinese to find english result is an excellent additional feature but not essential. Just like chinese-english translation, they have different purpose and can't replace each other's role
I suppose that different implementation of alias and translation is required, they're not exact the same thing
Translation with alias could possible looks like this:
or this:
(by using ruby text)
from a1111-sd-webui-tagcomplete.
I changed it to work like in your first suggestion for now. Translations need to be added in a new separate CSV file, not as an extra file anymore. Default is just two columns with English as first and Translation as second, but I also included a config switch for the old extra format with 3 columns if you use one of those files. The translations are currently always visible, and are matched purely based on the tag/alias name. Searching by the translated text still works like before if you leave it true in the config.
Thanks! This is really important for who using it as translate tag helper
from a1111-sd-webui-tagcomplete.
-
I found that search results by translated text is much lesser than before with the same translation csv, for example searching
袜
, every sorts of socks/stocking/thighhighs are displayed, in fact there are 121 hits of袜
in translation csv
But after 1.11 I got only 16 results no matter what, even I changeresultStepLength
to an absurd high valuedemo of searching results of
袜
with abb5625
screenshot of searching results of
袜
with 4eabf00, step length 95500
-
Strangely, in 4eabf00,
美式短袜
(bobby_socks) is in results when searching短袜
but is not when searching袜
. Few test results: (test done with step length 500 cuz 95500 is too laggy...)searching terms bobby_socks[美式短袜]
included in results美 Yes 式 No 短 No 袜 No 美式 Yes 式短 Yes 短袜 Yes 美式短 Yes 式短袜 Yes 美式短袜 Yes
Translation and config I use, if it helps (filename with -legacy
is for pre-1.10)
cn tags test.zip
p.s. not sure if this is the same problem, should I open a new issue?
from a1111-sd-webui-tagcomplete.
You're right, I tried it with your translation file and it seems to be a bug related to if the searched translation is in the alias, but not the tag itself. The example with bobby_socks is caused because the results with e.g. 式 include tags where this is the case, so the list is cut off on the first tag that fails to match (in this example "ascot").
from a1111-sd-webui-tagcomplete.
Related Issues (20)
- In some cases, i can't search tags by aliases. HOT 4
- Wrong format used for LyCORIS HOT 3
- Wildcard autocompletion in the prompt box cutoff from colon HOT 1
- [Feature Request] - Allow for names of Styles (found on the right side pulldown) to be included for autocomplete. HOT 4
- launch error and feature dont work
- Loras in hidden directories are suggested when they shouldn't
- Embedding suggestions not working under Diffusers backend. [SDNext] HOT 6
- Is it possible to update danbooru.csv? HOT 1
- (Feature request) stable-diffusion-webui-dataset-tag-editor support update HOT 1
- [Feature request] Fuzzy matching HOT 9
- New tag lists: EnglishDictionary.csv and Derpibooru.csv HOT 3
- Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. HOT 1
- 3.0.0无法弹出tag选项框 HOT 12
- Tag frequency database error - "module scripts.tag_frequency_db not in sys.modules" HOT 8
- XL embedding previews. HOT 4
- Making tagcomplete compatible with wildcard parser-wrap string changes HOT 5
- The extension breaks the ability to go to the beginning and end of a line using the Home and End buttons HOT 1
- Frequency database error - table fails to get created HOT 1
- [Feature Request] Dynamic Tag List Switching HOT 1
- Same name v1 and vXL embedding only show as v1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from a1111-sd-webui-tagcomplete.