Skip to content

Unable to understand the context #35

@rpalsaxena

Description

@rpalsaxena

I tried to test the library on this:

from price_parser import parse_price
parse_price("The price of 2000 plates is $13,004")

Output:

Price(amount=Decimal('2000'), currency='$')

It's unable to understand the context. I have gone through the code in parser.py, it's using regex to extract prices as well as the currency symbol.
Could you please share the vision of creating this library?

  1. Was it to process a column of a database that contains the prices like this:
    image

This way it can definitely resolve the minor human errors and help data scientists while preprocessing.

Or
The plan was to create a library that can extract prices from normal text like this:
"The price of 2000 plates is $13,004"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions