How the measurement units are detected by KM?

7 years 7 months ago #66 by javier-fernandez
How the measurement units are detected by KM? was created by javier-fernandez
Hello

Actually, I want to create a pattern to detect the a number and its measurement unit from the requirement. For that, I have define all the measurement unit with term tag “UNIT OF”.

In this term tag I have A = Ampere and Go = GigaOctet and also meter

When I use a very simple pattern “value” “UNIT OF” and after testing it I have the following result
  • 100 A = A is detected as Article and not as UNIT OF
  • 100 Go = Go is detected as VERB and not UNIT OF
  • 100 meters = Meter is detected as NOUN and not UNIT OF

Is it possible to tackle this problem or not?

Please Log in or Create an account to join the conversation.

  • javier-fernandez
  • Topic Author
7 years 7 months ago #67 by javier-fernandez
Replied by javier-fernandez on topic How the measurement units are detected by KM?
Hi!

There is already a term tag called “Measurement Unit” inside “Noun”. Any term added here will be recognized as Measurement unit. So this is the term tag you should use in your pattern.

I have attached an screenshot of an example of pattern that maybe you find interesting. Notice that it uses a subpattern in the first slot only for numbers without units and a slot at the end with any measurement unit. It also contemplates adjectives or some other terms as optional.
Attachments:

Please Log in or Create an account to join the conversation.

  • javier-fernandez
  • Topic Author