intficpy/sequence.py
def _match_text_to_suggestion(self, query_tokens):
        """
        Try to match tokens to a single suggestion from the current options
        Raises NoMatchingSuggestion on failure
        """
        tokenized_options = [tokenize(cleanInput(option)) for option in self.options]
        match_indeces = []

        for i in range(len(self.options)):
            option = tokenized_options[i]
            if not [word for word in query_tokens if not word in option]:
                match_indeces.append(i)

        if len(match_indeces) != 1:
            raise NoMatchingSuggestion(
                query_tokens, self.options, [self.options[ix] for ix in match_indeces]
            )

        return self.options[match_indeces[0]]

        Try to match tokens to a single suggestion from the current options
        Raises NoMatchingSuggestion on failure
        
Try to match tokens to a single suggestion from the current options
Raises NoMatchingSuggestion on failure
Try to match tokens to a single suggestion from the current options Raises NoMatchingSuggestion on failure
def _match_text_to_suggestion(self, query_tokens):
        tokenized_options = [tokenize(cleanInput(option)) for option in self.options]
        match_indeces = []
        for i in range(len(self.options)):
            option = tokenized_options[i]
            if not [word for word in query_tokens if not word in option]:
                match_indeces.append(i)
        if len(match_indeces) != 1:
            raise NoMatchingSuggestion(
                query_tokens, self.options, [self.options[ix] for ix in match_indeces]
            )
        return self.options[match_indeces[0]]
def _match_text_to_suggestion ( self , query_tokens ) : tokenized_options = [ tokenize ( cleanInput ( option ) ) for option in self . options ] match_indeces = [ ] for i in range ( len ( self . options ) ) : option = tokenized_options [ i ] if not [ word for word in query_tokens if not word in option ] : match_indeces . append ( i ) if len ( match_indeces ) != 1 : raise NoMatchingSuggestion ( query_tokens , self . options , [ self . options [ ix ] for ix in match_indeces ] ) return self . options [ match_indeces [ 0 ] ]
Try to match tokens to a single suggestion from the current options
Raises NoMatchingSuggestion on failure
Try to match tokens to a single suggestion from the current options Raises NoMatchingSuggestion on failure
"""
        Try to match tokens to a single suggestion from the current options
        Raises NoMatchingSuggestion on failure
        """
self
query_tokens