Comments (3)
Hi @sizhky, try label_names=["x"]
instead (" instead of ').
from thinc.
Yes, this works. Thank you. Is there any page in documentation that describes this?
You can point me to what could be the best place to add this in docs otherwise.
Another parallel request - Is there a way to add multiline strings in the file? This will be best useful for comments/descriptions/changelog type of fields
from thinc.
Yes, this works. Thank you. Is there any page in documentation that describes this?
You can point me to what could be the best place to add this in docs otherwise.
This is not in the docs, AFAIK. Towards the end of the usage section would probably be a good idea. Happy to look at the PR if you want to do this!
Another parallel request - Is there a way to add multiline strings in the file? This will be best useful for comments/descriptions/changelog type of fields
Yes, like this:
[TrainingConfig]
label_names=["x"]
test = """
this is a
test"""
The resulting dict is {'TrainingConfig': {'label_names': ['x'], 'test': '"""\nthis is a\ntest"""'}}
. In general we are congruent with the CFG format.
from thinc.
Related Issues (20)
- `SparseLinear` does not look up weights correctly
- Improving type definitions for forward/backward in models
- Segfault possibly caused by changes to `MaxOut` in v8.1.1 HOT 11
- Wrong entry-point fix_random_seed
- Type checkers don't like non-literal `__all__` in `thinc.api` for exposing the public interface HOT 2
- Allow Pydantic >= 1.10 HOT 2
- Is there a way to check if `prefer_gpu` has been called? HOT 1
- Tracking issue for Apple M-series GPU support
- llvm error out of memory HOT 1
- 'GLIBC_2.29' not found HOT 2
- Is there anyway to add multiline strings in a config file? HOT 1
- `reduce_mean` with zero-length sequence fails on NumPy backend HOT 2
- Tensorflow dependency slows spacy down HOT 2
- NumPy asarray op does not respect dtype for lists HOT 1
- Documentation of Loss.get_grad confusingly describes independent variable HOT 1
- core dump on powerpc64le HOT 1
- Spacy fails with "module 'cupy' has no attribute 'cublas'" HOT 3
- Wrong blis version on Termux HOT 1
- Support for cython 3.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinc.