Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

rouge.d.ts 722 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. declare module 'rouge' {
  2. function n(
  3. cand: string,
  4. ref: string,
  5. opts?: {
  6. n: number,
  7. nGram: (tokens: Array<string>, n: number) => Array<string>,
  8. tokenizer: (input: string) => Array<string>
  9. }
  10. ): number;
  11. function l(
  12. cand: string,
  13. ref: string,
  14. opts?: {
  15. beta: number,
  16. lcs: (a: Array<string>, b: Array<string>) => Array<string>,
  17. segmenter: (input: string) => Array<string>,
  18. tokenizer: (input: string) => Array<string>
  19. }
  20. ): number;
  21. function s(
  22. cand: string,
  23. ref: string,
  24. opts?: {
  25. beta: number,
  26. skipBigram: (tokens: Array<string>) => Array<string>,
  27. tokenizer: (input: string) => Array<string>
  28. }
  29. ): number;
  30. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...