• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NaturalNode / natural / 7130642836
87%

Build:
DEFAULT BRANCH: master
Ran 07 Dec 2023 03:55PM UTC
Jobs 3
Files 235
Run time 56s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Dec 2023 03:54PM UTC coverage: 86.3% (-0.02%) from 86.315%
7130642836

push

github

web-flow
Update TypeScript declarations (#679)

* [WIP] Update TS declarations

Importing natural in typescript projects using the provided type
declarations won't work until the declaration files themselves can be
compiled without errors. These are the minimum changes needed to resolve
the remaining errors.

* SentenceAnalyzer: Update TS declarations

- TaggedWord: Add property pp and remove index because there don't appear
  to be any other keys.
- TaggedSentence: punct() method is called in type() without checking for
  existence first, so should not be optional.
- SenType: Define the only possible strings that can be assigned to
  .sentType as an enum.
- SentenceAnalyzer: subjectToString() and predicateToString() can only
  return strings because ['a', null, 'b'].join('') === 'ab'.

* [WIP] BrillPosTagger: Update TS declarations

- Add RuleTemplate and index RuleTemplates
- Use Sentence type for several sentence parameters
- Replace non-existent function() method in Predicate with property meta
- Add properties and methods to TransformationRule, RuleSet, Corpus
- TODO: BrillPOSTagger, BrillPOSTester, BrillPOSTrainer

* BrillPosTagger: Update TS declarations

- Add remaining methods to BrillPOSTagger
- Add classes for BrillPOSTester, BrillPOSTrainer

* Address linting errors

* [WIP] Update classifier TS declarations

- Add apparatus classifier declarations since that library doesn't
  output types
- Make BayesClassifier and LogisticRegressionClassifier extend a common
  ClassifierBase class
- Update some any types
- Update classifiers test with updated types

* [WIP] Update error types in classifier callbacks

- null value expected when no error

* [WIP] Update classifier TS declarations

Some of these changes need to be revisited for accuracy.

- Add constructors to classes that extend a base class
- Remove unnecessary 'export' from 'declare class' (still confused about
  what needs an explicit export in... (continued)

2522 of 3309 branches covered (0.0%)

Branch coverage included in aggregate %.

9403 of 10509 relevant lines covered (89.48%)

67936.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7130642836.1 07 Dec 2023 03:55PM UTC 235
86.29
GitHub Action Run
2 7130642836.2 07 Dec 2023 03:55PM UTC 235
86.29
GitHub Action Run
3 7130642836.3 07 Dec 2023 03:55PM UTC 235
86.29
GitHub Action Run
Source Files on build 7130642836
  • Tree
  • List 235
  • Changed 25
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b19c127c on github
  • Prev Build on master (#7106860298)
  • Next Build on master (#7138790688)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc