Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matching many files #73

Open
aminebya1 opened this issue Dec 10, 2019 · 8 comments
Open

matching many files #73

aminebya1 opened this issue Dec 10, 2019 · 8 comments

Comments

@aminebya1
Copy link

is it possible to modify the code so he can match many files once

@dpwe
Copy link
Owner

dpwe commented Dec 10, 2019

The matching is intrinsically 1 query against the whole reference set, but each match is quite quick so you can run through a lot of queries in a loop.

The idea of looking for any matches among a large collection is an interesting variant. There might be a more efficient way of structuring that, but it's not trivial.

@aminebya1
Copy link
Author

can u tell me where to modify or give me some hints

@vikasmultitv
Copy link

Thanks for this wonderfull code which works very good. In My case I dont know whether a chunk could have 1 or 2 or 3 diffferent file matches. so I am using --max-matches 5 but using this I am getting duplicate matches of the same audio file. could you please help me about that ?

@dpwe
Copy link
Owner

dpwe commented Jan 15, 2020 via email

@vikasmultitv
Copy link

Thank You for replying :) Tried the same self.max_alignments_per_id = 100 to self.max_alignments_per_id = 0 and it worked but it miss if there is only 1 match.. I guess I will try some other way around in post processing

@vikasmultitv
Copy link

changing if found_this_id > self.max_alignments_per_id
to
if found_this_id >= self.max_alignments_per_id:
Worked fine :) Thank You

@dpwe
Copy link
Owner

dpwe commented Jan 15, 2020 via email

@vikasmultitv
Copy link

I am sorry , its my bad .. actually it is not working ... its missing the match when there is only one match in a chunk.. my chunk is of 1 minute and it can have 2-3 audio files ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants