You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code which is the example works while running the library and returns signature as expected.
message="""Thanks Sasha, I can't go any higher and is why I limited it to thehomepage.John Doevia mobile"""text, signature=signature.extract(message, sender='john.doe@example.com')
But when i make a minor edit as changing the sender name and his email id the signature returns "None". The following were values passed to signature.extract()
message="""Hello ,Thanks Sasha, I can't go any higher and is why I limited it to thehomepage.Sam Johnvia mobile"""text, signature=signature.extract(message, sender='samjohn@gmail.com')
Signature returned None for most of the messages that were tried.
The text was updated successfully, but these errors were encountered:
Hi @juanjohn. In the 1st example 'john.doe@example.com' has a separator between first and last name. So the algo can detect that the sender's first name is John and his last name is Doe. First / Last name in the end of the message is a strong indicator that the line is signature. In your 2nd example the algo can't distract first / last name of the sender and there are not enough other indicators to detect a signature.
The following code which is the example works while running the library and returns signature as expected.
But when i make a minor edit as changing the sender name and his email id the signature returns "None". The following were values passed to signature.extract()
Signature returned None for most of the messages that were tried.
The text was updated successfully, but these errors were encountered: