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

[NLU-3830] SPIKE: Language agnostic entity support #136

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

samhickey25
Copy link
Collaborator

No description provided.

]
},
{
"Input": "1,000,000",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to spell out what we expect when we get 1.000.00,00 instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think I'm going to add another test file for these other formats. I can't have them both in the one file because once the recogniser is initialised it stuck using that format

@@ -0,0 +1,122 @@
[
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar here, the expected output on: 192.168.0.1. I don't expect it to work, just to know the limitations of it.


class BaseMinimalDateParser(BaseDateParser):

def __init__(self, config):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these init's if we are just calling the super?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it and decided to leave this here for consistency. Wanted to be clear that the BaseMinimal classes are being used

self._utility_configuration = config.utility_configuration
self._check_both_before_after = MinimalDateTime.CheckBothBeforeAfter

def __normalize(self, source: str) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not actually, copied it from somewhere and forgot to remove it

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

Successfully merging this pull request may close these issues.

2 participants