Steven Bethard wrote:
> Michael Spencer wrote:
>
>> Steven Bethard wrote:
>>
>>> I've got a list of word substrings (the "tokens") which I need to
>>> align to a string of text (the "sentence"). The sentence is
>>> basically the concatenation of the token list, with spaces sometimes
>>> insert
Michael Spencer wrote:
> Steven Bethard wrote:
>
>> I've got a list of word substrings (the "tokens") which I need to
>> align to a string of text (the "sentence"). The sentence is basically
>> the concatenation of the token list, with spaces sometimes inserted
>> beetween tokens. I need to d
Fredrik Lundh wrote:
> Steven Bethard wrote:
>
>
I feel like there should be a simpler solution (maybe with the re
module?) but I can't figure one out. Any suggestions?
>>>
>>>using the finditer pattern I just posted in another thread:
>>>
>>>tokens = ['She', "'s", 'gon', 'na', 'write',
Steven Bethard wrote:
>>> I feel like there should be a simpler solution (maybe with the re
>>> module?) but I can't figure one out. Any suggestions?
>>
>> using the finditer pattern I just posted in another thread:
>>
>> tokens = ['She', "'s", 'gon', 'na', 'write', 'a', 'book', '?']
>> text = ''
Steven Bethard wrote:
> I've got a list of word substrings (the "tokens") which I need to align
> to a string of text (the "sentence"). The sentence is basically the
> concatenation of the token list, with spaces sometimes inserted beetween
> tokens. I need to determine the start and end offse
Paul McGuire wrote:
> "Steven Bethard" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>I've got a list of word substrings (the "tokens") which I need to align
>>to a string of text (the "sentence"). The sentence is basically the
>>concatenation of the token list, with spaces som
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've got a list of word substrings (the "tokens") which I need to align
> to a string of text (the "sentence"). The sentence is basically the
> concatenation of the token list, with spaces sometimes inserted beetween
>
Fredrik Lundh wrote:
> Steven Bethard wrote:
>> I feel like there should be a simpler solution (maybe with the re
>> module?) but I can't figure one out. Any suggestions?
>
> using the finditer pattern I just posted in another thread:
>
> tokens = ['She', "'s", 'gon', 'na', 'write', 'a', 'book',
Steven Bethard wrote:
> I feel like there should be a simpler solution (maybe with the re
> module?) but I can't figure one out. Any suggestions?
using the finditer pattern I just posted in another thread:
tokens = ['She', "'s", 'gon', 'na', 'write', 'a', 'book', '?']
text = '''\
She's gonna wr
I've got a list of word substrings (the "tokens") which I need to align
to a string of text (the "sentence"). The sentence is basically the
concatenation of the token list, with spaces sometimes inserted beetween
tokens. I need to determine the start and end offsets of each token in
the sente
10 matches
Mail list logo